Fix tests. Probably not the correct way to do this?
This commit is contained in:
parent
fad103a7ad
commit
5394b9f667
@ -16,6 +16,7 @@ import comicapi.comicarchive
|
||||
import comicapi.genericmetadata
|
||||
import comictaggerlib.ctoptions
|
||||
import comictalker.comiccacher
|
||||
import comictalker.comictalkerapi
|
||||
import comictalker.talkers.comicvine
|
||||
from comicapi import utils
|
||||
from testing import comicvine, filenames
|
||||
@ -156,11 +157,15 @@ def seed_all_publishers(monkeypatch):
|
||||
monkeypatch.setattr(utils, "publishers", publisher_seed)
|
||||
|
||||
|
||||
def get_plugins() -> dict:
|
||||
return comictalker.comictalkerapi.get_talkers()
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def options(settings_manager, tmp_path):
|
||||
|
||||
comictaggerlib.ctoptions.register_commandline(settings_manager)
|
||||
comictaggerlib.ctoptions.register_settings(settings_manager)
|
||||
comictaggerlib.ctoptions.register_settings(settings_manager, get_plugins())
|
||||
defaults = settings_manager.get_namespace(settings_manager.defaults())
|
||||
defaults[0].runtime_config = comictaggerlib.ctoptions.ComicTaggerPaths(tmp_path / "config")
|
||||
defaults[0].runtime_config.user_data_dir.mkdir(parents=True, exist_ok=True)
|
||||
|
Loading…
Reference in New Issue
Block a user