summaryrefslogtreecommitdiff
path: root/server/szurubooru/tests/search
diff options
context:
space:
mode:
Diffstat (limited to 'server/szurubooru/tests/search')
-rw-r--r--server/szurubooru/tests/search/configs/test_post_search_config.py1
-rw-r--r--server/szurubooru/tests/search/test_executor.py5
2 files changed, 5 insertions, 1 deletions
diff --git a/server/szurubooru/tests/search/configs/test_post_search_config.py b/server/szurubooru/tests/search/configs/test_post_search_config.py
index f04dabc..9f59b54 100644
--- a/server/szurubooru/tests/search/configs/test_post_search_config.py
+++ b/server/szurubooru/tests/search/configs/test_post_search_config.py
@@ -64,6 +64,7 @@ def auth_executor(executor, user_factory, config_injector):
config_injector(
{
"privileges": {
+ "posts:list:sketchy": model.User.RANK_REGULAR,
"posts:list:unsafe": model.User.RANK_REGULAR,
}
}
diff --git a/server/szurubooru/tests/search/test_executor.py b/server/szurubooru/tests/search/test_executor.py
index 5c52f72..21817c1 100644
--- a/server/szurubooru/tests/search/test_executor.py
+++ b/server/szurubooru/tests/search/test_executor.py
@@ -10,7 +10,10 @@ from szurubooru.func import cache
def inject_config(config_injector):
config_injector(
{
- "privileges": {"posts:list:unsafe": model.User.RANK_REGULAR},
+ "privileges": {
+ "posts:list:sketchy": model.User.RANK_REGULAR,
+ "posts:list:unsafe": model.User.RANK_REGULAR,
+ },
}
)