msabramo / requests-unixsocket

Use requests to talk HTTP via a UNIX domain socket
Apache License 2.0
207 stars 29 forks source link

Non case sensitive url comparison in tests. #27

Closed Kobla closed 7 years ago

Kobla commented 7 years ago

Fix for unit tests.

py27 installed: apipkg==1.4,execnet==1.4.1,pep8==1.7.0,pkg-resources==0.0.0,py==1.4.32,pytest==3.0.5,pytest-cache==1.0,pytest-capturelog==0.7,pytest-pep8==1.0.6,requests==2.12.4,requests-unixsocket==0.1.6.dev3,urllib3==1.19.1,waitress==1.0.1

requests_unixsocket/tests/test_requests_unixsocket.py:37: in test_unix_domain_adapter_ok assert r.url == url E assert 'http+unix://.../path/to/page' == 'http+unix://%.../path/to/page' E Skipping 39 identical trailing characters in diff, use -v to show E - http+unix://%2ftmp%2ftest_requ E ? ^ ^ E + http+unix://%2Ftmp%2Ftest_requ E ? ^ ^

requests_unixsocket/tests/test_requests_unixsocket.py:65: in test_unix_domain_adapter_url_with_query_params assert r.url == url E assert 'http+unix://...imestamp=true' == 'http+unix://%...imestamp=true' E Skipping 63 identical trailing characters in diff, use -v to show E - http+unix://%2ftmp%2ftest_requ E ? ^ ^ E + http+unix://%2Ftmp%2Ftest_requ E ? ^ ^

requests_unixsocket/tests/test_requests_unixsocket.py:113: in test_unix_domain_adapter_monkeypatch assert r.url == url E assert 'http+unix://.../path/to/page' == 'http+unix://%.../path/to/page' E Skipping 39 identical trailing characters in diff, use -v to show E - http+unix://%2ftmp%2ftest_requ E ? ^ ^ E + http+unix://%2Ftmp%2Ftest_requ E ? ^ ^

msabramo commented 7 years ago

Thanks, @Kobla!