forked from jazzband/dj-database-url
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
18 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,6 +43,17 @@ def test_postgres_unix_socket_parsing(self): | |
assert url['PASSWORD'] == '' | ||
assert url['PORT'] == '' | ||
|
||
def test_ipv6_parsing(self): | ||
url = 'postgres://ieRaekei9wilaim7:wegauwhgeuioweg@[2001:db8:1234::1234:5678:90af]:5431/d8r82722r2kuvn' | ||
url = dj_database_url.parse(url) | ||
|
||
assert url['ENGINE'] == 'django.db.backends.postgresql_psycopg2' | ||
assert url['NAME'] == 'd8r82722r2kuvn' | ||
assert url['HOST'] == '2001:db8:1234::1234:5678:90af' | ||
assert url['USER'] == 'ieRaekei9wilaim7' | ||
assert url['PASSWORD'] == 'wegauwhgeuioweg' | ||
assert url['PORT'] == 5431 | ||
|
||
def test_postgres_search_path_parsing(self): | ||
url = 'postgres://uf07k1i6d8ia0v:[email protected]:5431/d8r82722r2kuvn?currentSchema=otherschema' | ||
url = dj_database_url.parse(url) | ||
|