Skip to content

Commit

Permalink
add psycopg3 dialect to connection string.
Browse files Browse the repository at this point in the history
  • Loading branch information
rshewitt committed Aug 17, 2023
1 parent a1cfc7f commit 7bb874c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/db/sqlalchemy/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ def engine():
user = os.getenv("POSTGRES_USER")
password = os.getenv("POSTGRES_PASSWORD")
db = os.getenv("POSTGRES_DB")
dialect = "psycopg"

engine = create_engine(f"postgresql://{user}:{password}@{host}/{db}")
engine = create_engine(f"postgresql+{dialect}://{user}:{password}@{host}/{db}")
yield engine
engine.dispose()

Expand Down

1 comment on commit 7bb874c

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
harvester
   __init__.py30100% 
harvester/db/models
   __init__.py50100% 
   models.py530100% 
harvester/extract
   __init__.py1922 89%
   dcatus.py1122 82%
harvester/utils
   __init__.py00100% 
   json.py2266 73%
   pg.py3544 89%
   s3.py2466 75%
harvester/validate
   __init__.py00100% 
   dcat_us.py240100% 
TOTAL1962090% 

Tests Skipped Failures Errors Time
29 0 💤 0 ❌ 0 🔥 13.846s ⏱️

Please sign in to comment.