Skip to content

Commit 60511cf

Browse files
authored
Update integrated test baseline storage (#14)
1 parent bd68266 commit 60511cf

File tree

14 files changed

+1202
-100
lines changed

14 files changed

+1202
-100
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import os
2+
from pathlib import Path
3+
import shutil
4+
5+
6+
def create_assets_folder( target_dir ):
7+
"""
8+
Create an asset directory for html reports
9+
10+
Args:
11+
target_dir (str): Path to asset directory
12+
"""
13+
target_dir = os.path.abspath( os.path.expanduser( target_dir ) )
14+
if os.path.isdir( target_dir ):
15+
return
16+
17+
os.makedirs( target_dir )
18+
mod_path = os.path.dirname( os.path.abspath( Path( __file__ ).resolve() ) )
19+
for f in [ 'sorttable.js', 'style.css' ]:
20+
shutil.copyfile( os.path.join( mod_path, f ), os.path.join( target_dir, f ) )
21+
22+
shutil.unpack_archive( os.path.join( mod_path, 'lightbox.zip' ),
23+
os.path.join( target_dir, 'lightbox' ),
24+
format='zip' )
271 KB
Binary file not shown.

0 commit comments

Comments
 (0)