[add] add NORMALIZE_WHITESPACE and ELLIPSIS to pytest.ini and remove them from requests/__init__.py

This commit is contained in:
aless10
2019-05-19 16:25:52 +02:00
parent 96ff7ca31f
commit 6d2a5072ca
2 changed files with 2 additions and 3 deletions
+2 -1
View File
@@ -1,2 +1,3 @@
[pytest]
addopts = -p no:warnings --doctest-modules
addopts = -p no:warnings --doctest-modules
doctest_optionflags= NORMALIZE_WHITESPACE ELLIPSIS
-2
View File
@@ -24,8 +24,6 @@ Basic GET usage:
>>> payload = dict(key1='value1', key2='value2')
>>> r = requests.post('https://httpbin.org/post', data=payload)
>>> print(r.text)
... # doctest: +ELLIPSIS
... # doctest: +NORMALIZE_WHITESPACE
{
...
"form": {