diff options
| author | Barry Warsaw | 2016-10-16 13:41:21 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2016-10-16 13:41:21 -0400 |
| commit | 9607560be5697cc6b5fe4d0f26efa3d76890d94f (patch) | |
| tree | 6cf1eb350ec949e1d72b0459ab2b2724ca30bc90 | |
| parent | b530d7d6efdd756f531ca0abd76d84510654f5a6 (diff) | |
| download | mailman-9607560be5697cc6b5fe4d0f26efa3d76890d94f.tar.gz mailman-9607560be5697cc6b5fe4d0f26efa3d76890d94f.tar.zst mailman-9607560be5697cc6b5fe4d0f26efa3d76890d94f.zip | |
| -rw-r--r-- | src/mailman/database/tests/test_migrations.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/mailman/database/tests/test_migrations.py b/src/mailman/database/tests/test_migrations.py index 2ad41ae53..266274477 100644 --- a/src/mailman/database/tests/test_migrations.py +++ b/src/mailman/database/tests/test_migrations.py @@ -208,8 +208,8 @@ class TestMigrations(unittest.TestCase): def test_70af5a4e5790_data_paths(self): # Create a couple of mailing lists through the standard API. with transaction(): - ant = create_list('ant@example.com') - bee = create_list('bee@example.com') + create_list('ant@example.com') + create_list('bee@example.com') # Downgrade and verify that the old data paths exist. alembic.command.downgrade(alembic_cfg, '47294d3a604') self.assertTrue(os.path.exists( @@ -222,9 +222,11 @@ class TestMigrations(unittest.TestCase): self.assertFalse(os.path.exists( os.path.join(config.LIST_DATA_DIR, 'ant@example.com'))) self.assertFalse(os.path.exists( - os.path.join(config.LIST_DATA_DIR, 'ant@example.com'))) - self.assertTrue(os.path.exists(ant.data_path)) - self.assertTrue(os.path.exists(bee.data_path)) + os.path.join(config.LIST_DATA_DIR, 'bee@example.com'))) + self.assertTrue(os.path.exists( + os.path.join(config.LIST_DATA_DIR, 'ant.example.com'))) + self.assertTrue(os.path.exists( + os.path.join(config.LIST_DATA_DIR, 'bee.example.com'))) def test_7b254d88f122_moderation_action(self): sa.sql.table( |
