8000 Modernize tests by akx · Pull Request #180 · maxmind/GeoIP2-python · GitHub
[go: up one dir, main page]

Skip to content

Modernize tests #180

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open
Prev Previous commit
Next Next commit
Don't imply tests can be run directly without pytest
  • Loading branch information
akx committed Aug 28, 2024
commit ec9c837daadf8318f2d7c79c1662ff09373cbce1
3 changes: 0 additions & 3 deletions tests/database_test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#!/usr/bin/env python


import ipaddress
import re
8000 import unittest
Expand Down
4 changes: 0 additions & 4 deletions tests/models_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,3 @@ def test_german(self) -> None:
assert (
model.continent.name == "Nordamerika"
), "Correct german name for continent"


if __name__ == "__main__":
unittest.main()
6 changes: 0 additions & 6 deletions tests/webservice_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python

import asyncio
import copy
import ipaddress
Expand Down Expand Up @@ -357,7 +355,3 @@ def run_client(self, v):


del TestBaseClient


if __name__ == "__main__":
unittest.main()
0