Skip to content

Commit caa2926

Browse files
revert regen=True change
Signed-off-by: Peter Gardfjäll <peter.gardfjall.work@gmail.com>
1 parent 0151350 commit caa2926

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

tests/packagedcode/test_debian_copyright.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
def check_expected_parse_copyright_file(
2727
test_loc,
2828
expected_loc,
29-
regen=True,
29+
regen=False,
3030
simplified=False,
3131
_licensing=Licensing(),
3232
):
@@ -156,7 +156,7 @@ def create_test_function(
156156
expected_loc,
157157
test_name,
158158
simplified=False,
159-
regen=True,
159+
regen=False,
160160
):
161161
'''
162162
Return a test function closed on test arguments.
@@ -179,7 +179,7 @@ def test_func(self):
179179
return test_func
180180

181181

182-
def build_tests(test_dir, clazz, prefix='test_', regen=True):
182+
def build_tests(test_dir, clazz, prefix='test_', regen=False):
183183
'''
184184
Dynamically build test methods for each copyright file in `test_dir` and
185185
attach the test method to the `clazz` class.
@@ -211,7 +211,7 @@ class TestDebianCopyrightLicenseDetection(FileBasedTesting):
211211
test_dir='debian/copyright/debian-2019-11-15',
212212
prefix='test_debian_parse_copyright_file_',
213213
clazz=TestDebianCopyrightLicenseDetection,
214-
regen=True,
214+
regen=False,
215215
)
216216

217217

@@ -224,7 +224,7 @@ class TestDebianSlimCopyrightLicenseDetection(FileBasedTesting):
224224
test_dir='debian/copyright/debian-slim-2021-04-07',
225225
prefix='test_debian_slim_parse_copyright_file_',
226226
clazz=TestDebianSlimCopyrightLicenseDetection,
227-
regen=True,
227+
regen=False,
228228
)
229229

230230

@@ -237,7 +237,7 @@ class TestDebianMiscCopyrightLicenseDetection(FileBasedTesting):
237237
test_dir='debian/copyright/debian-misc',
238238
prefix='test_debian_misc_parse_copyright_file_',
239239
clazz=TestDebianMiscCopyrightLicenseDetection,
240-
regen=True,
240+
regen=False,
241241
)
242242

243243

@@ -262,7 +262,7 @@ def test_simplification(self):
262262
test_loc=test_loc,
263263
expected_loc=expected_loc,
264264
simplified=True,
265-
regen=True,
265+
regen=False,
266266
)
267267

268268
def test_is_paragraph_debian_packaging(self):

tests/summarycode/test_score.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
test_env.test_data_dir = os.path.join(os.path.dirname(__file__), 'data')
3232

3333

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

6767

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

9898

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

0 commit comments

Comments
 (0)