Skip to content

Commit

Permalink
Now copies all files from grid template
Browse files Browse the repository at this point in the history
Necessary to include rate files etc
  • Loading branch information
holm10 committed Dec 6, 2023
1 parent b21d6c0 commit fa1a0ed
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pytests/MakeTests.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def make_slab(self):
)

def make_unittests(self, outdir, commondir, griddir, inputdir, testfile):
from os import getcwd, chdir, walk
from os import getcwd, chdir, walk, listdir
from os.path import abspath, join, exists
from pathlib import Path
from shutil import copy, copytree, rmtree
Expand Down Expand Up @@ -116,8 +116,10 @@ def concat_files(file, snippet, header=None):
concat_files(join(default, 'input.py'), join(commondir, inputdir, 'header/default.py'))
# Add grid data to file, same for all files in inputdir
concat_files(join(default, 'input.py'), join(datapath, 'default.py'))
copy(join(datapath, "gridue"), default)
copy(join(datapath, "solution.h5"), default)
for file in listdir(datapath):
# Files to omit
if file not in ['default.py']:
copy(join(datapath, file), default)
confpath = join(commondir, 'tests', 'conftest.py')
copy(confpath, default)
# Loop through all folders containing snippets
Expand Down

0 comments on commit fa1a0ed

Please sign in to comment.