Skip to content

Commit

Permalink
Adds sgbc test
Browse files Browse the repository at this point in the history
  • Loading branch information
lmdiazangulo committed Dec 16, 2024
1 parent 5ec559f commit 7fa9f9a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/pyWrapper/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,3 +152,16 @@ def test_read_airplane(tmp_path):

assert os.path.isfile(vtkmapfile)


def test_sgbc_can_launch(tmp_path):
case = 'sgbc'
input_json = getCase(case)
input_json['general']['numberOfSteps'] = 1
fn = tmp_path._str + '/' + case + '.fdtd.json'
with open(fn, 'w') as modified_json:
json.dump(input_json, modified_json)

solver = FDTD(input_filename = fn, path_to_exe=SEMBA_EXE)
solver.run()

assert solver.hasFinishedSuccessfully() == True

0 comments on commit 7fa9f9a

Please sign in to comment.