File tree Expand file tree Collapse file tree 3 files changed +3
-12
lines changed Expand file tree Collapse file tree 3 files changed +3
-12
lines changed Original file line number Diff line number Diff line change 32
32
33
33
_REQUEST_UA = f"minFraud-API/{ __version__ } { requests .utils .default_user_agent ()} "
34
34
35
- # We have this so that we can avoid a mocket issue:
36
- # https://github.com/mindflayer/python-mocket/issues/209
37
- _SCHEME = "https"
38
-
39
35
40
36
# pylint: disable=too-many-instance-attributes, missing-class-docstring
41
37
class BaseClient :
@@ -62,7 +58,7 @@ def __init__(
62
58
self ._license_key = license_key
63
59
self ._timeout = timeout
64
60
65
- base_uri = f"{ _SCHEME } ://{ host } /minfraud/v2.0"
61
+ base_uri = f"https ://{ host } /minfraud/v2.0"
66
62
self ._score_uri = "/" .join ([base_uri , "score" ])
67
63
self ._insights_uri = "/" .join ([base_uri , "insights" ])
68
64
self ._factors_uri = "/" .join ([base_uri , "factors" ])
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ classifiers = [
35
35
36
36
[project .optional-dependencies ]
37
37
test = [
38
- " mocket>=3.11.1 " ,
38
+ " mocket>=3.12.3 " ,
39
39
]
40
40
41
41
[tool .setuptools .package-data ]
Original file line number Diff line number Diff line change 19
19
from minfraud .models import Factors , Insights , Score
20
20
from minfraud .webservice import AsyncClient , Client
21
21
22
- import minfraud .webservice
23
22
import unittest
24
23
25
- # We have this so that we can avoid a mocket issue:
26
- # https://github.com/mindflayer/python-mocket/issues/209
27
- minfraud .webservice ._SCHEME = "http"
28
-
29
24
30
25
class BaseTest (unittest .TestCase ):
31
26
client_class : Union [Type [AsyncClient ], Type [Client ]] = Client
@@ -41,7 +36,7 @@ def setUp(self):
41
36
with open (os .path .join (test_dir , self .response_file ), encoding = "utf-8" ) as file :
42
37
self .response = file .read ()
43
38
44
- base_uri = "http ://minfraud.maxmind.com/minfraud/v2.0"
39
+ base_uri = "https ://minfraud.maxmind.com/minfraud/v2.0"
45
40
46
41
@httprettified
47
42
def test_invalid_auth (self ):
You can’t perform that action at this time.
0 commit comments