Last active
November 23, 2017 09:58
-
-
Save JayH5/4e86f1a04e68c6eb9121328932fcd88b to your computer and use it in GitHub Desktop.
pytest pdb example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[...] | |
test.py:18: AssertionError | |
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> entering PDB >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> | |
> /Users/jamie/ws/seaworthy-demo/seaworthy/test.py(18)test_admin_page() | |
-> assert response.status_code == 200 | |
(Pdb) client.get("/admin") | |
<Response [400]> | |
(Pdb) client.get("/admin").text | |
'\n<!DOCTYPE html>\n<html lang="en">\n[...] | |
<!--a lot of unformatted HTML--> | |
[...]\n </div>\n\n</body>\n</html>\n' | |
(Pdb) nginx_container.get_first_host_port() | |
('0.0.0.0', '32772') | |
(Pdb) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment