Commit ba3af827 authored by Antoine Berchet's avatar Antoine Berchet
Browse files

Fix article test

parent 5ba60d8f
......@@ -110,10 +110,11 @@ def dummy_config_fwd(ref_dummy, request):
if os.path.isdir(target_dir):
shutil.rmtree(target_dir)
shutil.copytree(
"{}/obsvect".format(tmpdir_str),
target_dir
)
if os.path.isdir("{}/obsvect".format(tmpdir_str)):
shutil.copytree(
"{}/obsvect".format(tmpdir_str),
target_dir
)
# Copy the H matrix to avoid re-compiling it every time
Hfile_ref = "{}/model/H_matrix.pickle".format(tmpdir_str)
......@@ -121,5 +122,6 @@ def dummy_config_fwd(ref_dummy, request):
if os.path.isfile(Hfile_target):
os.remove(Hfile_target)
shutil.copy(Hfile_ref, Hfile_target)
if os.path.isfile(Hfile_ref):
shutil.copy(Hfile_ref, Hfile_target)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment