We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c8eb44 commit 8ff8359Copy full SHA for 8ff8359
tests/conftest.py
@@ -79,7 +79,7 @@ def database(postgresql_proc):
79
],
80
autouse=True,
81
)
82
-async def pgstac(database):
+async def pgstac(request, database):
83
connection = f"postgresql://{database.user}:{quote(database.password)}@{database.host}:{database.port}/{database.dbname}"
84
yield
85
conn = await asyncpg.connect(dsn=connection)
@@ -91,8 +91,9 @@ async def pgstac(database):
91
await conn.close()
92
with PgstacDB(dsn=connection) as db:
93
migrator = Migrate(db)
94
- version = migrator.run_migration()
+ version = migrator.run_migration(toversion=request.param)
95
96
+ assert version == request.param
97
logger.info(f"PGStac Migrated to {version}")
98
99
0 commit comments