mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-12 09:56:14 +02:00
Add config overrides steps to pytest
This requires some patching around the config object, which now happens in every test. Co-authored-by: Micah Jerome Ellison <micah.jerome.ellison@gmail.com>
This commit is contained in:
parent
e16e3a1f62
commit
9cd2250a61
8 changed files with 138 additions and 39 deletions
|
@ -143,10 +143,15 @@ def user_input():
|
|||
|
||||
|
||||
@fixture
|
||||
def config_data(config_path):
|
||||
def config_on_disk(config_path):
|
||||
return load_config(config_path)
|
||||
|
||||
|
||||
@fixture
|
||||
def config_in_memory():
|
||||
return dict()
|
||||
|
||||
|
||||
@fixture
|
||||
def journal_name():
|
||||
return None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue