File tree 2 files changed +3
-5
lines changed
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 1
1
import ipaddress
2
2
import re
3
- import unittest
4
3
from unittest .mock import patch , MagicMock
5
4
6
5
import pytest
15
14
maxminddb .extension = None # type: ignore
16
15
17
16
18
- class TestReader ( unittest . TestCase ) :
17
+ class TestReader :
19
18
def test_language_list (self ) -> None :
20
19
reader = geoip2 .database .Reader (
21
20
"tests/data/test-data/GeoIP2-Country-Test.mmdb" ,
Original file line number Diff line number Diff line change 2
2
3
3
import pytest
4
4
from typing import Dict
5
- import unittest
6
5
7
6
import geoip2 .models
8
7
9
8
10
- class TestModels ( unittest . TestCase ) :
9
+ class TestModels :
11
10
def test_insights_full (self ) -> None :
12
11
raw = {
13
12
"city" : {
@@ -313,7 +312,7 @@ def test_unknown_keys(self) -> None:
313
312
assert model .traits .ip_address == "1.2.3.4" , "correct ip"
314
313
315
314
316
- class TestNames ( unittest . TestCase ) :
315
+ class TestNames :
317
316
raw : Dict = {
318
317
"continent" : {
319
318
"code" : "NA" ,
You can’t perform that action at this time.
0 commit comments