Skip to content

Commit

Permalink
fixing activity problem
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiaBarbo committed Aug 25, 2024
1 parent 0f1c55b commit b5251a6
Show file tree
Hide file tree
Showing 4 changed files with 195 additions and 130 deletions.
Binary file modified tests/__pycache__/test_auth.cpython-310-pytest-8.2.2.pyc
Binary file not shown.
Binary file modified tests/__pycache__/test_documents.cpython-310-pytest-8.2.2.pyc
Binary file not shown.
6 changes: 5 additions & 1 deletion tests/test_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
def test_auth_register():

# correct new username and password
"""
payload = {
"user": "userA",
"password": "userA"
Expand All @@ -26,7 +27,7 @@ def test_auth_register():
}
response = requests.post(PATH + '/register', json=payload)
assert response.status_code == 201

"""

# username and password already exist
payload = {
Expand Down Expand Up @@ -62,6 +63,9 @@ def test_auth_login():

test_documents.TOKEN_A = response.json().get("result")

print(f"TOKEN_A: {test_documents.TOKEN_A}")


# Login corretto
payload = {
"user": "userB",
Expand Down
319 changes: 190 additions & 129 deletions tests/test_documents.py

Large diffs are not rendered by default.

0 comments on commit b5251a6

Please sign in to comment.