mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-06-28 13:36:14 +02:00
Rename features directory to data
This is more inline with pytest standards Co-authored-by: Micah Jerome Ellison <micah.jerome.ellison@gmail.com>
This commit is contained in:
parent
530190df7a
commit
0b50ae1be0
158 changed files with 4 additions and 1306 deletions
|
@ -36,15 +36,15 @@ def working_dir(request):
|
|||
def set_config(config_file, temp_dir, working_dir):
|
||||
# Copy the config file over
|
||||
config_source = os.path.join(
|
||||
working_dir, "features", "data", "configs", config_file
|
||||
working_dir, "data", "configs", config_file
|
||||
)
|
||||
config_dest = os.path.join(temp_dir.name, config_file)
|
||||
shutil.copy2(config_source, config_dest)
|
||||
|
||||
# @todo make this only copy some journals over
|
||||
# Copy all of the journals over
|
||||
journal_source = os.path.join(working_dir, "features", "data", "journals")
|
||||
journal_dest = os.path.join(temp_dir.name, "features", "journals")
|
||||
journal_source = os.path.join(working_dir, "data", "journals")
|
||||
journal_dest = os.path.join(temp_dir.name, "journals")
|
||||
shutil.copytree(journal_source, journal_dest)
|
||||
|
||||
# @todo get rid of this by using default config values
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue