diff --git a/Dockerfile b/Dockerfile index f140b4b..c837512 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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: diff --git a/src/commando/tests.py b/src/commando/tests.py index ca78b55..7dac4d5 100644 --- a/src/commando/tests.py +++ b/src/commando/tests.py @@ -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)