Resolved a few failing tests due to config issues
This commit is contained in:
parent
70a42c9df2
commit
187ab77ebd
3 changed files with 13 additions and 1 deletions
|
@ -6,7 +6,7 @@ from szurubooru.func import posts, tags, snapshots
|
|||
|
||||
@pytest.fixture(autouse=True)
|
||||
def inject_config(config_injector):
|
||||
config_injector({'privileges': {'posts:delete': model.User.RANK_REGULAR}})
|
||||
config_injector({'secret': 'test', 'data_dir': 'test', 'privileges': {'posts:delete': model.User.RANK_REGULAR}})
|
||||
|
||||
|
||||
def test_deleting(user_factory, post_factory, context_factory):
|
||||
|
|
|
@ -1,5 +1,11 @@
|
|||
from datetime import datetime
|
||||
from szurubooru import db, model
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def inject_config(config_injector):
|
||||
config_injector({'secret': 'test', 'data_dir': 'test'})
|
||||
|
||||
|
||||
def test_saving_post(post_factory, user_factory, tag_factory):
|
||||
|
|
|
@ -1,5 +1,11 @@
|
|||
from datetime import datetime
|
||||
from szurubooru import db, model
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def inject_config(config_injector):
|
||||
config_injector({'secret': 'test', 'data_dir': 'test'})
|
||||
|
||||
|
||||
def test_saving_tag(tag_factory):
|
||||
|
|
Loading…
Reference in a new issue