-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cc71d8e
commit b78d451
Showing
6 changed files
with
1 addition
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,15 +14,6 @@ def teardown_function(): | |
connection.execute(text("DELETE FROM events")) | ||
connection.execute(text("DELETE FROM user_to_events")) | ||
|
||
def test_create_user(client): | ||
response = client.post('/create_user', json={ | ||
'email': '[email protected]', | ||
'password': 'newpassword123' | ||
}) | ||
assert response.status_code == 201 | ||
data = response.get_json() | ||
assert data['message'] == 'User created successfully' | ||
|
||
def test_create_event(client): | ||
"""Test the create_event endpoint.""" | ||
sample_data = { | ||
|
@@ -62,11 +53,6 @@ def test_login(client): | |
data = response.get_json() | ||
assert data['success'] == True | ||
|
||
|
||
def test_get_users(client): | ||
response = client.get('/all_users') | ||
assert response.status_code == 200 | ||
|
||
def test_logout(client): | ||
response = client.post('/logout') | ||
assert response.status_code == 200 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters