mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
Ability to run regression tests using pytest
This commit is contained in:
parent
72aebfccf2
commit
98d5496102
84 changed files with 351 additions and 639 deletions
|
|
@ -1,16 +1,12 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
import glob
|
||||
import hashlib
|
||||
import os
|
||||
import sys
|
||||
sys.path.insert(0, os.path.join(os.pardir, os.pardir))
|
||||
from testing_harness import TestHarness
|
||||
|
||||
import h5py
|
||||
|
||||
import openmc
|
||||
|
||||
from tests.testing_harness import TestHarness
|
||||
|
||||
|
||||
class PlotTestHarness(TestHarness):
|
||||
"""Specialized TestHarness for running OpenMC plotting tests."""
|
||||
|
|
@ -60,7 +56,8 @@ class PlotTestHarness(TestHarness):
|
|||
return outstr
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
def test_plot(request):
|
||||
harness = PlotTestHarness(('plot_1.ppm', 'plot_2.ppm', 'plot_3.ppm',
|
||||
'plot_4.h5'))
|
||||
harness.request = request
|
||||
harness.main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue