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
Next Next commit
Do not manipulate sys.path in tests
  • Loading branch information
akx committed Aug 28, 2024
commit 6dbde7271c2da7bf93dbb73357f1818da69f1251
3 changes: 0 additions & 3 deletions tests/database_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,9 @@
from __future__ import unicode_literals

import ipaddress
import sys
import unittest
from unittest.mock import patch, MagicMock

sys.path.append("..")

import geoip2.database
import geoip2.errors
import maxminddb
Expand Down
3 changes: 0 additions & 3 deletions tests/models_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,9 @@

from __future__ import unicode_literals

import sys
from typing import Dict
import unittest

sys.path.append("..")

import geoip2.models


Expand Down
3 changes: 0 additions & 3 deletions tests/webservice_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import asyncio
import copy
import ipaddress
import json
import sys
from typing import cast, Dict
import unittest
from pytest_httpserver import HeaderValueMatcher
Expand All @@ -14,7 +12,6 @@
from collections import defaultdict


sys.path.append("..")
import geoip2
from geoip2.errors import (
AddressNotFoundError,
Expand Down
0