Skip to content

Commit

Permalink
fix ut
Browse files Browse the repository at this point in the history
  • Loading branch information
xadupre committed Oct 7, 2024
1 parent 09d7518 commit 5f9f35d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*.so
*.gv
*.gv.*
*.jpg
.coverage
.eggs/*
_cache/*
Expand Down
5 changes: 5 additions & 0 deletions _unittests/ut_xrun_doc/test_documentation_notebook.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import unittest
import os
import shutil
import sys
import importlib
import subprocess
Expand Down Expand Up @@ -60,6 +61,10 @@ def run_test(self, nb_name: str, verbose=0) -> int:
f.write(bcontent)

fold, name = os.path.split(tmp_name)
if name == "segment_detection.py":
img_name = os.path.join(os.path.split(nb_name)[0], "eglise_zoom2.jpg")
shutil.copy(img_name, fold)
shutil.copy(img_name, ".")

try:
mod = import_source(fold, os.path.splitext(name)[0])
Expand Down

0 comments on commit 5f9f35d

Please sign in to comment.