-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ Rename routes and tests for consistency (#23)
- Loading branch information
Showing
2 changed files
with
5 additions
and
5 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 |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
from app.tests.utils.user import create_user, user_authentication_headers | ||
|
||
|
||
def test_get_organizations(client: TestClient, db: Session) -> None: | ||
def test_read_organizations(client: TestClient, db: Session) -> None: | ||
# Create test data in the database using db fixture | ||
org1 = create_random_organization(db) | ||
org2 = create_random_organization(db) | ||
|
@@ -62,7 +62,7 @@ def test_get_organizations(client: TestClient, db: Session) -> None: | |
assert organizations[0]["id"] == org3.id | ||
|
||
|
||
def test_get_organization(client: TestClient, db: Session) -> None: | ||
def test_read_organization(client: TestClient, db: Session) -> None: | ||
organization = create_random_organization(db) | ||
user = create_user(session=db, email="[email protected]", password="test123") | ||
add_user_to_organization( | ||
|
@@ -93,7 +93,7 @@ def test_get_organization(client: TestClient, db: Session) -> None: | |
assert "full_name" in item["user"] | ||
|
||
|
||
def test_get_organization_not_found(client: TestClient) -> None: | ||
def test_read_organization_not_found(client: TestClient) -> None: | ||
user_auth_headers = user_authentication_headers( | ||
client=client, | ||
email=settings.FIRST_SUPERUSER, | ||
|