Skip to content

Commit a975598

Browse files
committed
Do not manipulate sys.path in tests
1 parent 0c8345e commit a975598

File tree

3 files changed

+0
-8
lines changed

3 files changed

+0
-8
lines changed

tests/database_test.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
import datetime
22
import ipaddress
3-
import sys
43
import unittest
54
from unittest.mock import MagicMock, patch
65

7-
sys.path.append("..")
8-
96
import maxminddb
107

118
import geoip2.database

tests/models_test.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
import ipaddress
2-
import sys
32
import unittest
43
from typing import ClassVar
54

6-
sys.path.append("..")
7-
85
import geoip2.models
96

107

tests/webservice_test.py

Lines changed: 0 additions & 2 deletions
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)