Skip to content

Commit

Permalink
revert regen=True change
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Gardfjäll <peter.gardfjall.work@gmail.com>
  • Loading branch information
petergardfjall committed Nov 26, 2021
1 parent 0151350 commit caa2926
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions tests/packagedcode/test_debian_copyright.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
def check_expected_parse_copyright_file(
test_loc,
expected_loc,
regen=True,
regen=False,
simplified=False,
_licensing=Licensing(),
):
Expand Down Expand Up @@ -156,7 +156,7 @@ def create_test_function(
expected_loc,
test_name,
simplified=False,
regen=True,
regen=False,
):
'''
Return a test function closed on test arguments.
Expand All @@ -179,7 +179,7 @@ def test_func(self):
return test_func


def build_tests(test_dir, clazz, prefix='test_', regen=True):
def build_tests(test_dir, clazz, prefix='test_', regen=False):
'''
Dynamically build test methods for each copyright file in `test_dir` and
attach the test method to the `clazz` class.
Expand Down Expand Up @@ -211,7 +211,7 @@ class TestDebianCopyrightLicenseDetection(FileBasedTesting):
test_dir='debian/copyright/debian-2019-11-15',
prefix='test_debian_parse_copyright_file_',
clazz=TestDebianCopyrightLicenseDetection,
regen=True,
regen=False,
)


Expand All @@ -224,7 +224,7 @@ class TestDebianSlimCopyrightLicenseDetection(FileBasedTesting):
test_dir='debian/copyright/debian-slim-2021-04-07',
prefix='test_debian_slim_parse_copyright_file_',
clazz=TestDebianSlimCopyrightLicenseDetection,
regen=True,
regen=False,
)


Expand All @@ -237,7 +237,7 @@ class TestDebianMiscCopyrightLicenseDetection(FileBasedTesting):
test_dir='debian/copyright/debian-misc',
prefix='test_debian_misc_parse_copyright_file_',
clazz=TestDebianMiscCopyrightLicenseDetection,
regen=True,
regen=False,
)


Expand All @@ -262,7 +262,7 @@ def test_simplification(self):
test_loc=test_loc,
expected_loc=expected_loc,
simplified=True,
regen=True,
regen=False,
)

def test_is_paragraph_debian_packaging(self):
Expand Down
6 changes: 3 additions & 3 deletions tests/summarycode/test_score.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
test_env.test_data_dir = os.path.join(os.path.dirname(__file__), 'data')


def make_test_function(test_name, test_dir, expected_file, regen=True):
def make_test_function(test_name, test_dir, expected_file, regen=False):
"""
Build and return a test function closing on tests arguments and the function
name. Create only a single function for multiple tests (e.g. copyrights and
Expand Down Expand Up @@ -65,7 +65,7 @@ def closure_test_function(*args, **kwargs):
return closure_test_function, test_name


def build_tests(test_base_dir, clazz, regen=True):
def build_tests(test_base_dir, clazz, regen=False):
"""
Dynamically build test methods from a sequence of CopyrightTest and attach
these method to the clazz test class.
Expand Down Expand Up @@ -96,4 +96,4 @@ class TestLicenseScore(FileDrivenTesting):
pass


build_tests(test_base_dir='score', clazz=TestLicenseScore, regen=True)
build_tests(test_base_dir='score', clazz=TestLicenseScore, regen=False)

0 comments on commit caa2926

Please sign in to comment.