Skip to content

Commit 7fd39e7

Browse files
committed
better handling of test in validate
1 parent 2e23401 commit 7fd39e7

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎oceanval/__init__.py‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -614,9 +614,10 @@ def validate(
614614
# os.symlink(f"{book_dir}/_build/html/index.html", f"{out_dir}/oceanval_report.html")
615615
# create a symlink with relative directory
616616
os.symlink(os.path.relpath(out_ff, out_dir), f"{out_dir}/oceanval_report.html")
617-
webbrowser.open(
618-
"file://" + os.path.abspath(f"{book_dir}/_build/html/index.html")
619-
)
617+
if test is False:
618+
webbrowser.open(
619+
"file://" + os.path.abspath(f"{book_dir}/_build/html/index.html")
620+
)
620621

621622

622623
def rebuild(data_dir="."):

0 commit comments

Comments
 (0)