Skip to content

Instantly share code, notes, and snippets.

@antonyc
Created January 18, 2022 08:10
Show Gist options
  • Save antonyc/bf6bba372071ef6c380c18aa92106653 to your computer and use it in GitHub Desktop.
Save antonyc/bf6bba372071ef6c380c18aa92106653 to your computer and use it in GitHub Desktop.
chapson quick paste
========================================================= ERRORS =========================================================
___________________________________________ ERROR at setup of test_token_auth ____________________________________________
username = 'jvuuivpocs'
@pytest.fixture(scope="session")
def cloud_user(username):
"""
Provide a new cloud app user
"""
resp = requests.post(
"http://localhost:3000/",
{
"email": f"{username}@example.com",
"password": "password",
"password_confirmation": "password",
"invite": "LOCAL",
},
allow_redirects=False,
)
> assert resp.status_code == 302
E assert 403 == 302
E +403
E -302
fixtures/user.py:40: AssertionError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment