diff --git a/matchcode/tests/test_models.py b/matchcode/tests/test_models.py index 5c64c98c..e22b0c7c 100644 --- a/matchcode/tests/test_models.py +++ b/matchcode/tests/test_models.py @@ -437,7 +437,7 @@ def test_ApproximateResourceContentIndex_match_deep_equals(self): matches = ApproximateResourceContentIndex.match(fp) results = [match.package.to_dict() for match in matches] expected_results_loc = self.get_test_loc('match/approximate-file-matching/index-modified.js-expected.json') - self.check_expected_results(results, expected_results_loc, regen=True) + self.check_expected_results(results, expected_results_loc, regen=FIXTURES_REGEN) class MatchcodeModelUtilsTestCase(MatchcodeTestCase): diff --git a/minecode/tests/test_cran.py b/minecode/tests/test_cran.py index ea2733fe..9592182d 100644 --- a/minecode/tests/test_cran.py +++ b/minecode/tests/test_cran.py @@ -46,7 +46,7 @@ def test_build_packages_from_directory_listing(self): packages = mappers.cran.build_packages_from_html(metadata, 'https://cloud.r-project.org/web/packages/ANN2/index.html', 'pkg:cran/ANN2') packages = [p.to_dict() for p in packages] expected_loc = self.get_test_loc('cran/mapper_ANN2_expected.json') - self.check_expected_results(packages, expected_loc, regen=True) + self.check_expected_results(packages, expected_loc, regen=FIXTURES_REGEN) def test_build_packages_from_directory_listing2(self): ResourceURI.objects.create(uri='https://cloud.r-project.org/web/packages/abe/index.html') @@ -55,7 +55,7 @@ def test_build_packages_from_directory_listing2(self): packages = mappers.cran.build_packages_from_html(metadata, 'https://cloud.r-project.org/web/packages/abe/index.htm', 'pkg:cran/abe') packages = [p.to_dict() for p in packages] expected_loc = self.get_test_loc('cran/mapper_abe_expected.json') - self.check_expected_results(packages, expected_loc, regen=True) + self.check_expected_results(packages, expected_loc, regen=FIXTURES_REGEN) def test_replace_downloadurl(self): url = "../../../src/contrib/Archive/ANN2"