🐛 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:
parent
59b62aae17
commit
416d294117
3 changed files with 4 additions and 29 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue