Skip to content

Commit

Permalink
Added one test for CRUDBaseRepository
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpro2022 committed Dec 9, 2023
1 parent e582162 commit c1d7b74
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/base_services/test_db_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ def _compare_values(self, obj: Model, payload: dict[str, str]) -> None:
assert obj.title == payload['title'], (obj.title, payload['title'])
assert obj.description == payload['description'], (obj.description, payload['description'])

def test_set_order_by(self):
assert self.crud_base_not_implemented.set_order_by('') is None

# === CRUD ===
@pytest_mark_anyio
async def test_save(self) -> None:
Expand Down

0 comments on commit c1d7b74

Please sign in to comment.