remove redundant comma for empty migration

This commit is contained in:
ar0ne
2023-12-26 23:12:11 +05:30
parent b1ff2418f5
commit ad54b5e9dd
2 changed files with 17 additions and 5 deletions

View File

@@ -973,7 +973,7 @@ def test_sort_all_version_files(mocker):
async def test_empty_migration(mocker) -> None:
mocker.patch("os.listdir", return_value=[])
Migrate.app = "foo"
expected_content = MIGRATE_TEMPLATE.format(upgrade_sql=";", downgrade_sql=";")
expected_content = MIGRATE_TEMPLATE.format(upgrade_sql="", downgrade_sql="")
with tempfile.TemporaryDirectory() as temp_dir:
Migrate.migrate_location = temp_dir