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

Test failure with dj-database-url == 2.2.0 #387

Open
mgorny opened this issue Jun 19, 2024 · 0 comments
Open

Test failure with dj-database-url == 2.2.0 #387

mgorny opened this issue Jun 19, 2024 · 0 comments

Comments

@mgorny
Copy link

mgorny commented Jun 19, 2024

Upon upgrading dj-database-url to 2.2.0, I'm getting the following test failure:

$ PYTHONPATH=. django-cadmin test 
Found 70 test(s).
Creating test database for alias 'default'...
System check identified no issues (0 silenced).
...........................F../tmp/django-configurations/.venv/lib/python3.12/site-packages/dj_email_url.py:89: UserWarning: `smtps` scheme will be deprecated in a future version, use `submission` instead
  warnings.warn(
........................................
======================================================================
FAIL: test_database_url_value (tests.test_values.ValueTests.test_database_url_value)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/django-configurations/tests/test_values.py", line 376, in test_database_url_value
    self.assertEqual(value.setup('DATABASE_URL'), {
AssertionError: {'default': {'NAME': ':memory:', 'USER': '', 'PASSWORD'[151 chars]e3'}} != {'default': {'CONN_HEALTH_CHECKS': False, 'CONN_MAX_AGE[113 chars] ''}}
  {'default': {'CONN_HEALTH_CHECKS': False,
               'CONN_MAX_AGE': 0,
-              'DISABLE_SERVER_SIDE_CURSORS': False,
               'ENGINE': 'django.db.backends.sqlite3',
               'HOST': '',
               'NAME': ':memory:',
               'PASSWORD': '',
               'PORT': '',
               'USER': ''}}

----------------------------------------------------------------------
Ran 70 tests in 2.463s

FAILED (failures=1)
Destroying test database for alias 'default'...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant