diff --git a/setup.cfg b/setup.cfg index 036db29..aaa1d7f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -2,7 +2,7 @@ test=pytest [tool:pytest] -addopts = -p no:warnings -v --cov=mati +addopts = -p no:warnings -v --cov=dhlmex [flake8] inline-quotes = ' @@ -14,8 +14,8 @@ include_trailing_comma=True force_grid_wrap=0 combine_as_imports=True -[mypy-iso8601] +[mypy-pytest] ignore_missing_imports = true -[mypy-pytest] -ignore_missing_imports = true \ No newline at end of file +[mypy-vcr] +ignore_missing_imports = true diff --git a/setup.py b/setup.py index 7f8bc3e..9468920 100644 --- a/setup.py +++ b/setup.py @@ -34,7 +34,6 @@ install_requires=[ 'dataclasses>=0.6;python_version<"3.7"', 'requests>=2.22.0,<3.0.0', - 'iso8601>=0.1.12,<0.2.0', ], setup_requires=['pytest-runner'], tests_require=test_requires, diff --git a/tests/cassettes/test_successful_login.yaml b/tests/cassettes/test_successful_login.yaml new file mode 100644 index 0000000..1916c36 --- /dev/null +++ b/tests/cassettes/test_successful_login.yaml @@ -0,0 +1,252 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, + like Gecko) Chrome/75.0.3770.142 Safari/537.36 + method: GET + uri: https://prepaid.dhl.com.mx/Prepago/ + response: + body: + string: "\n\n\n
\n \n