Skip to content

Commit

Permalink
Test DATABASE_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
JdFSilva committed Oct 23, 2024
1 parent b660172 commit 62779a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions labs/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
DATABASE_NAME = os.environ.get("DATABASE_NAME")
DATABASE_PORT = os.environ.get("DATABASE_PORT")
DATABASE_URL = f"postgresql://{DATABASE_USER}:{DATABASE_PASS}@{DATABASE_HOST}:{DATABASE_PORT}/{DATABASE_NAME}"
print(f"{DATABASE_URL=}")

CELERY_BROKER_URL = os.environ.get("CELERY_BROKER_URL")
CELERY_BACKEND_URL = os.environ.get("CELERY_BACKEND_URL")
Expand Down
4 changes: 4 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import logging
import random
import pytest
from labs.config import settings
Expand All @@ -7,6 +8,9 @@

from labs.database.embeddings import Embedding

logger = logging.getLogger(__name__)

logger.error(f"{settings.DATABASE_URL=}")

engine = create_engine(settings.DATABASE_URL, echo=True)
Session = sessionmaker(bind=engine)
Expand Down

0 comments on commit 62779a5

Please sign in to comment.