Skip to content

Commit

Permalink
Address ruff lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed Aug 28, 2024
1 parent d32a326 commit 40b53ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/database_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,5 +240,5 @@ def test_modes(self, mock_open) -> None:
with geoip2.database.Reader(
path,
mode=geoip2.database.MODE_MMAP_EXT,
) as reader:
):
mock_open.assert_called_once_with(path, geoip2.database.MODE_MMAP_EXT)
2 changes: 1 addition & 1 deletion tests/models_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def test_city_full(self) -> None:
assert re.search(
r"^geoip2.models.City\(\{.*geoname_id.*\}, \[.*en.*\]\)", str(model)
), "City str representation looks reasonable"
assert not (model == True), "__eq__ does not blow up on weird input"
assert not (model == 8), "__eq__ does not blow up on weird input"

def test_unknown_keys(self) -> None:
model = geoip2.models.City(
Expand Down

0 comments on commit 40b53ac

Please sign in to comment.