mirror of
https://github.com/jazzband/dj-database-url.git
synced 2026-03-16 22:20:24 +00:00
Fix cleardb test
Although I find `assert url['PORT'] is None` more pythonic, PORT is set in the main script via `'PORT': url.port or '',` so, we are obliged to use checking for '' in our tests.
This commit is contained in:
parent
86984deace
commit
f07b16b35c
2 changed files with 1 additions and 1 deletions
BIN
dj_database_url.pyc
Normal file
BIN
dj_database_url.pyc
Normal file
Binary file not shown.
|
|
@ -54,7 +54,7 @@ class DatabaseTestSuite(unittest.TestCase):
|
|||
assert url['HOST'] == 'us-cdbr-east.cleardb.com'
|
||||
assert url['USER'] == 'bea6eb025ca0d8'
|
||||
assert url['PASSWORD'] == '69772142'
|
||||
assert url['PORT'] is None
|
||||
assert url['PORT'] is ''
|
||||
|
||||
def test_database_url(self):
|
||||
del os.environ['DATABASE_URL']
|
||||
|
|
|
|||
Loading…
Reference in a new issue