Skip to content

Commit

Permalink
Fix mypy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
c-bata committed Feb 10, 2023
1 parent 5b2f424 commit dd6fad0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python_tests/test_storage_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,17 @@ def test_get_rdb_storage_invalid(self) -> None:
def test_get_journal_file_storage_valid(self) -> None:
with tempfile.NamedTemporaryFile() as file:
storage = get_storage(file.name)
self.assertIsInstance(storage, JournalStorage)
assert isinstance(storage, JournalStorage)
self.assertIsInstance(storage._backend, JournalFileStorage)

with tempfile.NamedTemporaryFile() as file:
storage = get_storage(file.name, storage_class="JournalFileStorage")
self.assertIsInstance(storage, JournalStorage)
assert isinstance(storage, JournalStorage)
self.assertIsInstance(storage._backend, JournalFileStorage)

with tempfile.NamedTemporaryFile() as file:
storage = get_storage(file.name, storage_class="JournalFileStorage")
self.assertIsInstance(storage, JournalStorage)
assert isinstance(storage, JournalStorage)
self.assertIsInstance(storage._backend, JournalFileStorage)

def test_get_journal_file_storage_invalid(self) -> None:
Expand Down

0 comments on commit dd6fad0

Please sign in to comment.