Last active
September 15, 2021 12:45
-
-
Save samkit-jain/9d0da534d806c30490f48d8d520a781d to your computer and use it in GitHub Desktop.
This file contains hidden or 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_sign_in_01(client): | |
# Sign in a user by testing the ``POST /signin/`` API endpoint. | |
# Uisng the same user as created in the ``test_sign_up_01()`` test. | |
response = client.post( | |
"/signin/", | |
json={"username": "username", "password": "password"}, | |
) | |
assert response.status_code == 200 | |
assert response.json == {"message": "Logged in"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment