aboutsummaryrefslogtreecommitdiff
path: root/server/szurubooru/tests/api
diff options
context:
space:
mode:
authorShyam Sunder2020-09-24 12:57:26 -0400
committerneobooru2020-09-24 19:09:54 +0200
commitd4f72de8c24e03e4f2420772af373ee7952e35c7 (patch)
tree09b593cd33a31ba158bee7e9c3a3178963f48993 /server/szurubooru/tests/api
parentb5d2e447fc3f40050516e9ef9879ebe2008dd4d2 (diff)
server/tests: fix failing tests
Diffstat (limited to 'server/szurubooru/tests/api')
-rw-r--r--server/szurubooru/tests/api/test_tag_category_creating.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/server/szurubooru/tests/api/test_tag_category_creating.py b/server/szurubooru/tests/api/test_tag_category_creating.py
index 2370cb8..6798cbe 100644
--- a/server/szurubooru/tests/api/test_tag_category_creating.py
+++ b/server/szurubooru/tests/api/test_tag_category_creating.py
@@ -36,11 +36,14 @@ def test_creating_category(
tag_categories.serialize_category.return_value = "serialized category"
result = api.tag_category_api.create_tag_category(
context_factory(
- params={"name": "meta", "color": "black"}, user=auth_user
+ params={"name": "meta", "color": "black", "order": 0},
+ user=auth_user,
)
)
assert result == "serialized category"
- tag_categories.create_category.assert_called_once_with("meta", "black")
+ tag_categories.create_category.assert_called_once_with(
+ "meta", "black", 0
+ )
snapshots.create.assert_called_once_with(category, auth_user)

© 2015 - 2026 Jakob L. Kreuze