summaryrefslogtreecommitdiff
path: root/src/mailman/database/tests/test_migrations.py
diff options
context:
space:
mode:
authorBarry Warsaw2016-03-24 21:49:37 -0400
committerBarry Warsaw2016-03-24 21:49:37 -0400
commite1876e6f699ab4b212d689786297f6f1e70c1551 (patch)
tree6f3b96a233602451cc6eaf450032a56a3344c85c /src/mailman/database/tests/test_migrations.py
parent5404f98d90410d69a744d9c0fb71a8a31f3a4a88 (diff)
downloadmailman-e1876e6f699ab4b212d689786297f6f1e70c1551.tar.gz
mailman-e1876e6f699ab4b212d689786297f6f1e70c1551.tar.zst
mailman-e1876e6f699ab4b212d689786297f6f1e70c1551.zip
Diffstat (limited to 'src/mailman/database/tests/test_migrations.py')
-rw-r--r--src/mailman/database/tests/test_migrations.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/mailman/database/tests/test_migrations.py b/src/mailman/database/tests/test_migrations.py
index 331f386d0..3087c46ee 100644
--- a/src/mailman/database/tests/test_migrations.py
+++ b/src/mailman/database/tests/test_migrations.py
@@ -17,11 +17,6 @@
"""Test database schema migrations with Alembic"""
-__all__ = [
- 'TestMigrations',
- ]
-
-
import os
import unittest
import alembic.command
@@ -102,7 +97,8 @@ class TestMigrations(unittest.TestCase):
alembic.command.upgrade(alembic_cfg, '42756496720')
results = config.db.store.execute(
header_match_table.select()).fetchall()
- self.assertEqual(results,
+ self.assertEqual(
+ results,
[(1, hm[0], hm[1]) for hm in test_header_matches])
def test_47294d3a604_pendable_keyvalues(self):
@@ -127,7 +123,7 @@ class TestMigrations(unittest.TestCase):
sa.sql.column('value', sa.Unicode),
sa.sql.column('pended_id', sa.Integer),
)
- def get_from_db():
+ def get_from_db(): # flake8: noqa
results = {}
for i in range(1, 6):
query = sa.sql.select(