Skip to content

Commit 67e5380

Browse files
committed
Ensure that test regen works for validation tests
License validation tests were not properly regeneratable. Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent 3714f93 commit 67e5380

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/licensedcode/test_detection_validate.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
from licensedcode import cache
2121
from licensedcode import models
22+
from licensedcode.models import licenses_data_dir
2223
from scancode_config import REGEN_TEST_FIXTURES
2324

2425
"""
@@ -121,7 +122,7 @@ def check_ignorable_clues(licensish, regen=REGEN_TEST_FIXTURES, verbose=False):
121122
``regen`` the ignorables to update the License or Rule .yml data file.
122123
"""
123124
result = models.get_ignorables(text=licensish.text)
124-
125+
125126
if verbose:
126127
print()
127128
print('result')
@@ -137,7 +138,7 @@ def check_ignorable_clues(licensish, regen=REGEN_TEST_FIXTURES, verbose=False):
137138

138139
models.set_ignorables(licish, result , verbose=verbose)
139140

140-
licish.dump()
141+
licish.dump(licenses_data_dir)
141142
if is_from_license:
142143
licensish = models.build_rule_from_license(licish)
143144

0 commit comments

Comments
 (0)