🐛 fix(basic_example.json): change value of "value" key from "abc" to null to remove hardcoded value and improve flexibility

✅ test(test_user.py): add test to create a super user for testing purposes and ensure it returns the correct response
🔥 chore(utils.py): remove unused functions run_post and poll_task_status to clean up code
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-09-22 11:06:25 -03:00
commit 416d294117
3 changed files with 4 additions and 29 deletions

View file

@ -213,7 +213,9 @@ def test_normal_user_cant_delete_user(client, test_user, logged_in_headers):
# If you still want to test the superuser endpoint
def test_add_super_user_for_testing_purposes_delete_me_before_merge_into_dev(client):
def test_add_super_user_for_testing_purposes_delete_me_before_merge_into_dev(
client,
):
response = client.post("/api/v1/super_user")
assert response.status_code == 200
assert response.json()["username"] == "superuser"