Skip to content

Commit

Permalink
some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
15r10nk committed Oct 23, 2024
1 parent 33a252d commit a813871
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions mutmut/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -674,10 +674,12 @@ def old_tests():
}

def clear_out_obsolete_test_names(self):
mutmut.tests_by_mangled_function_name = {
old_tests=dict(mutmut.tests_by_mangled_function_name)
mutmut.tests_by_mangled_function_name.clear()
mutmut.tests_by_mangled_function_name.update({
k: {test_name for test_name in test_names if test_name not in self.ids}
for k, test_names in mutmut.tests_by_mangled_function_name.items()
}
for k, test_names in old_tests.items()
})
save_stats()

def new_tests(self):
Expand All @@ -688,7 +690,7 @@ class PytestRunner(TestRunner):
def execute_pytest(self, params, **kwargs):
import pytest
params+=["--rootdir=.","--inline-snapshot=disable"]
print(">","pytest",*params,kwargs)
#print(">","pytest",*params,kwargs)
exit_code = int(pytest.main(params, **kwargs))
if exit_code == 4:
raise BadTestExecutionCommandsException(params)
Expand Down

0 comments on commit a813871

Please sign in to comment.