Skip to content

Commit

Permalink
Fix the loader type in pytest-postgresql
Browse files Browse the repository at this point in the history
Signed-off-by: Aurélien Bompard <[email protected]>
  • Loading branch information
abompard committed Mar 26, 2024
1 parent 433118d commit 4b550cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion datanommer.models/datanommer/models/testing/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
from pathlib import Path

import pytest
from pytest_postgresql import factories
Expand All @@ -17,7 +18,7 @@ def postgresql_proc_with_timescaledb(postgresql_proc):
yield postgresql_proc


_inital_sql = os.path.abspath(os.path.join(os.path.dirname(__file__), "startup.sql"))
_inital_sql = Path(__file__).parent.joinpath("startup.sql").absolute()
pgsql = factories.postgresql(
"postgresql_proc_with_timescaledb",
load=[_inital_sql],
Expand Down

0 comments on commit 4b550cb

Please sign in to comment.