diff options
Diffstat (limited to '')
| -rw-r--r-- | tests/test_cli.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_cli.py b/tests/test_cli.py index 1507544..d8781ea 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -916,8 +916,9 @@ def test_all_migrations_can_downgrade_to_empty_schema(database_app: Flask) -> No assert tables <= {"alembic_version"} if "alembic_version" in tables: assert ( - connection.execute(sa.text("SELECT count(*) FROM alembic_version")) - .scalar_one() + connection.execute( + sa.text("SELECT count(*) FROM alembic_version") + ).scalar_one() == 0 ) |
