Skip to content

Commit

Permalink
Fix linter errors in tests
Browse files Browse the repository at this point in the history
Signed-off-by: Teodora Sechkova <[email protected]>
  • Loading branch information
sechkova committed Dec 15, 2021
1 parent 26a5f81 commit 2562aff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_updater_consistent_snapshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def setUp(self) -> None:
self.targets_dir = os.path.join(self.temp_dir.name, "targets")
os.mkdir(self.metadata_dir)
os.mkdir(self.targets_dir)
self.sim: RepositorySimulator

def tearDown(self) -> None:
self.temp_dir.cleanup()
Expand All @@ -55,7 +56,7 @@ def setup_subtest(
self.sim.dump_dir = os.path.join(self.dump_dir, name)
os.mkdir(self.sim.dump_dir)

def teardown_subtest(self):
def teardown_subtest(self) -> None:
if self.dump_dir is not None:
self.sim.write()

Expand Down
1 change: 1 addition & 0 deletions tests/test_updater_delegation_graphs.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ class TestDelegationsGraphs(unittest.TestCase):
dump_dir: Optional[str] = None

def setUp(self) -> None:
# pylint: disable=consider-using-with
self.subtest_count = 0
self.temp_dir = tempfile.TemporaryDirectory()
self.metadata_dir = os.path.join(self.temp_dir.name, "metadata")
Expand Down

0 comments on commit 2562aff

Please sign in to comment.