mirror of
https://github.com/kennethreitz/dj-database-url.git
synced 2026-06-05 23:10:17 +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:
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']
|
||||
|
||||
Reference in New Issue
Block a user