Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding psycog binary/pool; fixing PostgresContainer field names #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.idea
venv/
.pytest_cache/

__pycache__/
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ iniconfig==2.0.0
packaging==24.0
pluggy==1.5.0
psycopg==3.1.18
psycopg-binary==3.1.18
psycopg-pool==3.2.2
pytest==8.1.1
requests==2.31.0
testcontainers==4.4.0
Expand Down
6 changes: 3 additions & 3 deletions tests/test_customers.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ def remove_container():
os.environ["DB_CONN"] = postgres.get_connection_url()
os.environ["DB_HOST"] = postgres.get_container_host_ip()
os.environ["DB_PORT"] = postgres.get_exposed_port(5432)
os.environ["DB_USERNAME"] = postgres.POSTGRES_USER
os.environ["DB_PASSWORD"] = postgres.POSTGRES_PASSWORD
os.environ["DB_NAME"] = postgres.POSTGRES_DB
os.environ["DB_USERNAME"] = postgres.username
os.environ["DB_PASSWORD"] = postgres.password
os.environ["DB_NAME"] = postgres.dbname
customers.create_table()


Expand Down