Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Securityparameters #57

Merged
merged 5 commits into from
Dec 19, 2021
Merged

Securityparameters #57

merged 5 commits into from
Dec 19, 2021

Conversation

commonism
Copy link

@commonism commonism commented Dec 19, 2021

fixes #36 #18
tests #14

commonism and others added 4 commits December 19, 2021 20:56
I'd rather not add another dependency, especially if it's just for one
line, and I think the standard library handles this fine.

I couldn't find a fixture for `mocker`, so tests failed locally for me -
I replaced it with unittest's patch.
@Dorthu
Copy link
Owner

Dorthu commented Dec 19, 2021

I pushed up a few changes to the tests; namely, I'd rather not add more dependencies that needed, and mocker wasn't defined, so I replaced it with calls to patch.

This is probably where `mocker` came from
@Dorthu Dorthu merged commit 063fe45 into Dorthu:master Dec 19, 2021
@commonism
Copy link
Author

mocker is the pytest fixture for unittest.mock - provided by pytest-mock.
yarl is from the the aiohttp universe, great when working with urls/parameters.
For cookieauth the assert r.call_args.args[0].headers["Cookie"] == "Session=%s" % (auth,) got lost.

@commonism commonism deleted the securityparameters branch December 21, 2021 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants