Skip to content

Commit 645795b

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

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

tests/database_test.py

-3
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,9 @@
22

33

44
import ipaddress
5-
import sys
65
import unittest
76
from unittest.mock import MagicMock, patch
87

9-
sys.path.append("..")
10-
118
import maxminddb
129

1310
import geoip2.database

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

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,15 @@
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
10-
from typing import cast, Callable, Union
9+
from typing import Callable, Union, cast
1110

1211
import pytest
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)