Skip to content

Commit

Permalink
Fix cleardb test
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
JeffPaine committed Mar 3, 2014
1 parent 86984de commit f07b16b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file added dj_database_url.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion test_dj_database_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def test_cleardb_parsing(self):
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']
Expand Down

0 comments on commit f07b16b

Please sign in to comment.