diff options
author | neodarz <neodarz@neodarz.net> | 2018-08-19 13:10:04 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2018-08-19 13:10:04 +0200 |
commit | 2a9518c9e771c9eec67aa25ee0d1e2e8b8195892 (patch) | |
tree | 46dc7d03c50d1c776e45a5d5a2580ffa8115e4df /src/tests/test_user.py | |
parent | 7867863b6cd21a87b97df7cabd6871f6a5204602 (diff) | |
download | liberationCenter-2a9518c9e771c9eec67aa25ee0d1e2e8b8195892.tar.xz liberationCenter-2a9518c9e771c9eec67aa25ee0d1e2e8b8195892.zip |
Diffstat (limited to '')
-rw-r--r-- | src/tests/test_user.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tests/test_user.py b/src/tests/test_user.py index f39279e..c6ddbd4 100644 --- a/src/tests/test_user.py +++ b/src/tests/test_user.py @@ -12,10 +12,10 @@ def test_get_all_users(app): def test_register_user(app): with app.app_context(): user = User(app) - assert user.register("neodarz") is None + assert user.register("neodarz")['code'] is 201 def test_register_and_remove_user(app): with app.app_context(): user = User(app) - assert user.register("neodarz") is None - assert user.remove("neodarz") is None + assert user.register("neodarz")['code'] is 201 + assert user.remove("neodarz")['code'] is 200 |