-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
b90d220
commit b301e23
Showing
11 changed files
with
107 additions
and
15 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
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
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 |
---|---|---|
|
@@ -94,3 +94,5 @@ | |
} | ||
|
||
CONSTANCE_BACKEND = "constance.backends.database.DatabaseBackend" | ||
|
||
LOGOUT_URL = "/" |
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
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
from unicef_security.utils import get_setting | ||
|
||
|
||
def test_get_setting_ok(django_app): | ||
assert ( | ||
get_setting( | ||
[ | ||
"TIME_ZONE", | ||
], | ||
"DEFAULT", | ||
) | ||
== "UTC" | ||
) | ||
|
||
|
||
def test_get_setting_default(django_app): | ||
assert ( | ||
get_setting( | ||
[ | ||
"NON_EXISTING_SETTING", | ||
], | ||
"DEFAULT", | ||
) | ||
== "DEFAULT" | ||
) |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from django.urls import reverse | ||
|
||
|
||
def test_unicef_logout(django_app): | ||
resp = django_app.get(reverse("security:unicef-logout")) | ||
assert resp.status_code == 302 | ||
|
||
|
||
def test_unauthorized(django_app): | ||
resp = django_app.get(reverse("security:unauthorized")) | ||
assert resp.status_code == 200 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.