aboutsummaryrefslogtreecommitdiff
path: root/server/szurubooru/tests/api/test_comment_rating.py
diff options
context:
space:
mode:
Diffstat (limited to 'server/szurubooru/tests/api/test_comment_rating.py')
-rw-r--r--server/szurubooru/tests/api/test_comment_rating.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/server/szurubooru/tests/api/test_comment_rating.py b/server/szurubooru/tests/api/test_comment_rating.py
index a5bcce8..73ad4b6 100644
--- a/server/szurubooru/tests/api/test_comment_rating.py
+++ b/server/szurubooru/tests/api/test_comment_rating.py
@@ -6,9 +6,12 @@ from szurubooru.func import util, comments, scores
@pytest.fixture
def test_ctx(config_injector, context_factory, user_factory, comment_factory):
config_injector({
- 'ranks': ['anonymous', 'regular_user'],
+ 'ranks': ['anonymous', 'regular_user', 'mod'],
'rank_names': {'anonymous': 'Peasant', 'regular_user': 'Lord'},
- 'privileges': {'comments:score': 'regular_user'},
+ 'privileges': {
+ 'comments:score': 'regular_user',
+ 'users:edit:any:email': 'mod',
+ },
'thumbnails': {'avatar_width': 200},
})
db.session.flush()

© 2015 - 2026 Jakob L. Kreuze