Skip to content

Commit

Permalink
Do not manipulate sys.path in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed Aug 27, 2024
1 parent e8bed66 commit e087376
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
3 changes: 0 additions & 3 deletions tests/database_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@
from __future__ import unicode_literals

import ipaddress
import sys
import unittest

sys.path.append("..")

import geoip2.database
import geoip2.errors
import maxminddb
Expand Down
2 changes: 0 additions & 2 deletions tests/models_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
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 comments on commit e087376

Please sign in to comment.