Skip to content

Commit

Permalink
Fix tests by emptying fingerprints of Finding for each test
Browse files Browse the repository at this point in the history
  • Loading branch information
JokeWaumans committed Nov 25, 2024
1 parent 7912233 commit 00044dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@

from unittest.mock import patch

from mlx.warnings import warnings_wrapper, WarningsConfigError
from mlx.warnings import warnings_wrapper, WarningsConfigError, Finding

TEST_IN_DIR = Path(__file__).parent / 'test_in'
TEST_OUT_DIR = Path(__file__).parent / 'test_out'


class TestIntegration(TestCase):
def setUp(self):
Finding.fingerprints = {}
if not TEST_OUT_DIR.exists():
TEST_OUT_DIR.mkdir()

Expand Down
1 change: 1 addition & 0 deletions tests/test_polyspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

class TestCodeProverWarnings(unittest.TestCase):
def setUp(self):
Finding.fingerprints = {}
self.warnings = WarningsPlugin(verbose=True)
self.dut = self.warnings.activate_checker_name('polyspace')
self.dut.checkers = [
Expand Down

0 comments on commit 00044dc

Please sign in to comment.