diff options
author | Thomas Duval <thomas.duval@orange.com> | 2018-01-03 14:13:11 +0100 |
---|---|---|
committer | Thomas Duval <thomas.duval@orange.com> | 2018-01-03 14:13:11 +0100 |
commit | d023803536f069b4a69cfeeb744e56dfcd54103b (patch) | |
tree | 73747e82b064bfa49bbfa10d8db28264c15a8217 /moon_authz/tests/unit_python/test_authz.py | |
parent | 52d037e757ac2189978e1129f469929fe73a9b7f (diff) |
Clean the code and fix some bugs
Change-Id: I3516d001cb0792ca6b01a40b9d9d13efc3ba30f9
Diffstat (limited to 'moon_authz/tests/unit_python/test_authz.py')
-rw-r--r-- | moon_authz/tests/unit_python/test_authz.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/moon_authz/tests/unit_python/test_authz.py b/moon_authz/tests/unit_python/test_authz.py index f98abebc..50493c9f 100644 --- a/moon_authz/tests/unit_python/test_authz.py +++ b/moon_authz/tests/unit_python/test_authz.py @@ -12,9 +12,9 @@ def get_json(data): def test_authz_true(context): import moon_authz.server - from python_moonutilities.security_functions import Context + from python_moonutilities.context import Context from python_moonutilities.cache import Cache - server = moon_authz.server.main() + server = moon_authz.server.create_server() client = server.app.test_client() CACHE = Cache() CACHE.update() @@ -33,9 +33,9 @@ def test_authz_true(context): def test_user_not_allowed(context): import moon_authz.server - from python_moonutilities.security_functions import Context + from python_moonutilities.context import Context from python_moonutilities.cache import Cache - server = moon_authz.server.main() + server = moon_authz.server.create_server() client = server.app.test_client() CACHE = Cache() CACHE.update() |