Skip to content

Commit 645b53c

Browse files
remove test for unauthorized create_user
1 parent 46c9888 commit 645b53c

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

backend/tests/api/routes/test_users.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -132,20 +132,6 @@ def test_create_user_existing_username(
132132
assert "_id" not in created_user
133133

134134

135-
def test_create_user_by_normal_user(
136-
client: TestClient, normal_user_token_headers: dict[str, str]
137-
) -> None:
138-
username = random_email()
139-
password = random_lower_string()
140-
data = {"email": username, "password": password}
141-
r = client.post(
142-
f"{settings.API_V1_STR}/users/",
143-
headers=normal_user_token_headers,
144-
json=data,
145-
)
146-
assert r.status_code == 403
147-
148-
149135
def test_retrieve_users(
150136
client: TestClient, superuser_token_headers: dict[str, str], db: Session
151137
) -> None:

0 commit comments

Comments
 (0)