Last active
November 23, 2017 09:07
-
-
Save JayH5/16d16494302e5c440273e6180f5938eb to your computer and use it in GitHub Desktop.
Django admin page test (failing)
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
def test_admin_page(nginx_container): | |
client = nginx_container.http_client() | |
response = client.get("/admin") | |
assert response.status_code == 200 | |
assert "text/html" in response.headers["content-type"] | |
assert "<title>Log in | Django site admin</title>" in response.text |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment