Skip to content

Commit

Permalink
make test work with async pg & sqlite
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabien Coelho committed Dec 24, 2023
1 parent 66f2f09 commit 610cda4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,9 @@ async def run_async_insert_returning(conn, queries, db, todate):
async def run_async_delete(conn, queries):
# Removing the "janedoe" blog titled "Testing"
actual = await queries.blogs.remove_blog(conn, blogid=2)
assert actual is None
# log.warning(f"actual = {actual}")
# FIXME all implementations should return the same!
assert actual == "DELETE 1" or actual == 1

janes_blogs = await queries.blogs.get_user_blogs(conn, userid=3)
assert len(janes_blogs) == 0
Expand Down

0 comments on commit 610cda4

Please sign in to comment.