Spaces:
Sleeping
Sleeping
File size: 371 Bytes
878d807 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | import pytest
from app.engine.postgresdb import get_db
@pytest.mark.skip
def test_postgres_db_connection():
"""
Tests the connection to the postgres db
"""
with get_db() as session:
# Execute a query to test the connection
result = session.execute(f"SELECT 1").scalar()
# Assert that the result is equal to 1
assert result == 1
|