mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
added new results test for basic test
This commit is contained in:
parent
e178c7b16d
commit
5d00dfa638
4 changed files with 60 additions and 0 deletions
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
import os
|
||||
from subprocess import Popen, STDOUT, PIPE
|
||||
import filecmp
|
||||
|
||||
pwd = os.path.dirname(__file__)
|
||||
|
||||
|
|
@ -18,6 +19,10 @@ def test_run():
|
|||
def test_created_statepoint():
|
||||
assert os.path.exists(pwd + '/statepoint.10.binary')
|
||||
|
||||
def test_results():
|
||||
os.system('python results.py')
|
||||
assert filecmp.cmp('results_test.dat', 'results_true.dat')
|
||||
|
||||
def teardown():
|
||||
output = [pwd + '/statepoint.10.binary']
|
||||
for f in output:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue