Skip to content

Commit e087376

Browse files
committed
Do not manipulate sys.path in tests
1 parent e8bed66 commit e087376

File tree

3 files changed

+0
-8
lines changed

3 files changed

+0
-8
lines changed

tests/database_test.py

-3
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,8 @@
44
from __future__ import unicode_literals
55

66
import ipaddress
7-
import sys
87
import unittest
98

10-
sys.path.append("..")
11-
129
import geoip2.database
1310
import geoip2.errors
1411
import maxminddb

tests/models_test.py

-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
from typing import Dict
88
import unittest
99

10-
sys.path.append("..")
11-
1210
import geoip2.models
1311

1412

tests/webservice_test.py

-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
import asyncio
55
import copy
66
import ipaddress
7-
import json
8-
import sys
97
from typing import cast, Dict
108
import unittest
119
from pytest_httpserver import HeaderValueMatcher
@@ -14,7 +12,6 @@
1412
from collections import defaultdict
1513

1614

17-
sys.path.append("..")
1815
import geoip2
1916
from geoip2.errors import (
2017
AddressNotFoundError,

0 commit comments

Comments
 (0)