diff options
| author | Shyam Sunder | 2020-03-07 21:02:01 -0500 |
|---|---|---|
| committer | Shyam Sunder | 2020-03-13 22:45:11 -0400 |
| commit | bd9284b7f8d809f122f68f04525244457c90c645 (patch) | |
| tree | d2d144cadcbb09888557cd9a81232fc7493ed85b /server/szurubooru/tests/api | |
| parent | 4c78cf8c4792e3eba8508f607bc3a4544d1f666f (diff) | |
server/tests: update unit tests for elasticsearch removal
Diffstat (limited to 'server/szurubooru/tests/api')
| -rw-r--r-- | server/szurubooru/tests/api/test_post_creating.py | 4 | ||||
| -rw-r--r-- | server/szurubooru/tests/api/test_post_updating.py | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/server/szurubooru/tests/api/test_post_creating.py b/server/szurubooru/tests/api/test_post_creating.py index c708897..9d94a92 100644 --- a/server/szurubooru/tests/api/test_post_creating.py +++ b/server/szurubooru/tests/api/test_post_creating.py @@ -12,6 +12,7 @@ def inject_config(config_injector): 'posts:create:identified': model.User.RANK_REGULAR, 'tags:create': model.User.RANK_REGULAR, }, + 'allow_broken_uploads': False, }) @@ -250,8 +251,7 @@ def test_omitting_optional_field( def test_errors_not_spending_ids( - config_injector, tmpdir, context_factory, read_asset, user_factory, - skip_post_hashing): + config_injector, tmpdir, context_factory, read_asset, user_factory): config_injector({ 'data_dir': str(tmpdir.mkdir('data')), 'data_url': 'example.com', diff --git a/server/szurubooru/tests/api/test_post_updating.py b/server/szurubooru/tests/api/test_post_updating.py index fa298ea..229ecef 100644 --- a/server/szurubooru/tests/api/test_post_updating.py +++ b/server/szurubooru/tests/api/test_post_updating.py @@ -19,6 +19,7 @@ def inject_config(config_injector): 'posts:edit:thumbnail': model.User.RANK_REGULAR, 'tags:create': model.User.RANK_MODERATOR, }, + 'allow_broken_uploads': False, }) |