Kevin Kennell
d7b218f5eb
decode base64 credentials as utf8; adjust tests ( #7193 )
...
* decode base64 credentials as utf8; adjust tests
* basicauth: add dedicated test for utf8 credentials
* basicauth: add fallback to latin-1 encoding if utf-8 fails
2020-02-17 16:10:52 +00:00
Ryan P Kilby
c04d6eac43
Update pytest ( #6768 )
...
* Update pytest to 5.x
* Ensure test de-monkeypatches auth on failure
* Fix pytest.raises compat issue
2019-06-30 19:08:52 -07:00
Jon Dufresne
513a49d63b
Drop default 'utf-8' to .encode()/.decode() ( #6633 )
...
A Python 3 cleanup that allows for less noise in the code.
https://docs.python.org/3/library/stdtypes.html#bytes.decode
https://docs.python.org/3/library/stdtypes.html#str.encode
2019-05-01 07:49:16 +02:00
Carlton Gibson
0407a0df8a
Dropped Python 2 compatibility. ( #6615 )
...
Thanks to Jon Dufresne (@jdufresne) for review.
Co-authored-by: Asif Saif Uddin <auvipy@gmail.com>
Co-authored-by: Rizwan Mansuri <Rizwan@webbyfox.com>
2019-04-30 17:53:44 +02:00
Carlton Gibson
481ae69df3
Add migration for CustomToken test model.
...
Move authentication tests to sub-app to enable this.
2019-02-14 15:57:20 +01:00