Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
382 changes: 378 additions & 4 deletions chafan_core/tests/app/api/api_v1/test_answers.py

Large diffs are not rendered by default.

685 changes: 685 additions & 0 deletions chafan_core/tests/app/api/api_v1/test_articles.py

Large diffs are not rendered by default.

348 changes: 327 additions & 21 deletions chafan_core/tests/app/api/api_v1/test_comments.py

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion chafan_core/tests/app/api/api_v1/test_profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ def test_profiles(
example_site_uuid: str,
normal_user_id: int,
) -> None:
db.expire_all()
site = crud.site.get_by_uuid(db, uuid=example_site_uuid)
assert site is not None
assert site is not None, f"Site {example_site_uuid} not found"
crud.profile.remove_by_user_and_site(db, owner_id=normal_user_id, site_id=site.id)
normal_user_uuid = client.get(
f"{settings.API_V1_STR}/me", headers=normal_user_token_headers
Expand Down
Loading
Loading