Skip to content

Commit

Permalink
added STRIPE_TEST_OVERRIDE to docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Somraj-234 committed Aug 16, 2024
1 parent c005957 commit bb31b59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ ENV DJANGO_SECRET_KEY=${DJANGO_SECRET_KEY}
ARG DJANGO_DEBUG=0
ENV DJANGO_DEBUG=${DJANGO_DEBUG}

ARG STRIPE_TEST_OVERRIDE=1
ENV STRIPE_TEST_OVERRIDE=${STRIPE_TEST_OVERRIDE}

# database isn't available during build
# run any other commands that do not need the database
# such as:
Expand Down
1 change: 0 additions & 1 deletion src/commando/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@ class NeonDBTestCase(TestCase):

def test_db_url(self):
DATABASE_URL = settings.DATABASES['default']['HOST'] if 'HOST' in settings.DATABASES['default'] else None
print(f"Using DATABASE_URL: {DATABASE_URL}") # Print the DATABASE_URL
self.assertIsNotNone(DATABASE_URL, "DATABASE_URL should not be None")
self.assertIn("neon.tech", DATABASE_URL)

0 comments on commit bb31b59

Please sign in to comment.