aboutsummaryrefslogtreecommitdiff
path: root/tests/cli/test_database.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/cli/test_database.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/cli/test_database.py b/tests/cli/test_database.py
index 51b79ac..f25aade 100644
--- a/tests/cli/test_database.py
+++ b/tests/cli/test_database.py
@@ -80,8 +80,11 @@ def test_create_db_builds_schema_and_records_latest_migration(
assert _database_revision(database_app) == _head_revision(database_app)
with database_app.app_context():
- table_names = set(inspect(DATABASE.engine).get_table_names())
+ inspector = inspect(DATABASE.engine)
+ table_names = set(inspector.get_table_names())
+ columns = {column["name"] for column in inspector.get_columns("sent_webmentions")}
assert {"alembic_version", "users", "received_webmentions"} <= table_names
+ assert {"attempt_count", "next_retry_at"} <= columns
def test_create_db_refuses_existing_database_without_modifying_it(