Skip to content

Commit 8ff8359

Browse files
committed
really tests pgstac version
1 parent 1c8eb44 commit 8ff8359

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/conftest.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def database(postgresql_proc):
7979
],
8080
autouse=True,
8181
)
82-
async def pgstac(database):
82+
async def pgstac(request, database):
8383
connection = f"postgresql://{database.user}:{quote(database.password)}@{database.host}:{database.port}/{database.dbname}"
8484
yield
8585
conn = await asyncpg.connect(dsn=connection)
@@ -91,8 +91,9 @@ async def pgstac(database):
9191
await conn.close()
9292
with PgstacDB(dsn=connection) as db:
9393
migrator = Migrate(db)
94-
version = migrator.run_migration()
94+
version = migrator.run_migration(toversion=request.param)
9595

96+
assert version == request.param
9697
logger.info(f"PGStac Migrated to {version}")
9798

9899

0 commit comments

Comments
 (0)