Skip to content

Commit d965163

Browse files
committed
Do not manipulate sys.path in tests
1 parent 16027da commit d965163

File tree

3 files changed

+0
-9
lines changed

3 files changed

+0
-9
lines changed

tests/database_test.py

-5
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,9 @@
22

33

44
import ipaddress
5-
import sys
65
import unittest
76
from unittest.mock import MagicMock, patch
8-
9-
sys.path.append("..")
10-
117
import maxminddb
12-
138
import geoip2.database
149
import geoip2.errors
1510

tests/models_test.py

-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
import sys
66
import unittest
77

8-
sys.path.append("..")
9-
108
import geoip2.models
119

1210

tests/webservice_test.py

-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import asyncio
44
import copy
55
import ipaddress
6-
import sys
76
import unittest
87
from abc import ABC, abstractmethod
98
from collections import defaultdict
@@ -13,7 +12,6 @@
1312
import pytest_httpserver
1413
from pytest_httpserver import HeaderValueMatcher
1514

16-
sys.path.append("..")
1715
import geoip2
1816
from geoip2.errors import (
1917
AddressNotFoundError,

0 commit comments

Comments
 (0)