forked from openmc-dev/openmc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ability to run regression tests using pytest
- Loading branch information
1 parent
72aebfc
commit 98d5496
Showing
84 changed files
with
351 additions
and
639 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[pytest] | ||
python_files = test*.py | ||
python_classes = NoThanks | ||
filterwarnings = ignore::UserWarning |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
#!/usr/bin/env python | ||
from tests.testing_harness import CMFDTestHarness | ||
|
||
import os | ||
import sys | ||
sys.path.insert(0, os.path.join(os.pardir, os.pardir)) | ||
from testing_harness import CMFDTestHarness | ||
|
||
|
||
if __name__ == '__main__': | ||
def test_cmfd_feed(request): | ||
harness = CMFDTestHarness('statepoint.20.h5') | ||
harness.request = request | ||
harness.main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
#!/usr/bin/env python | ||
from tests.testing_harness import CMFDTestHarness | ||
|
||
import os | ||
import sys | ||
sys.path.insert(0, os.path.join(os.pardir, os.pardir)) | ||
from testing_harness import CMFDTestHarness | ||
|
||
|
||
if __name__ == '__main__': | ||
def test_cmfd_nofeed(request): | ||
harness = CMFDTestHarness('statepoint.20.h5') | ||
harness.request = request | ||
harness.main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
#!/usr/bin/env python | ||
from tests.testing_harness import TestHarness | ||
|
||
import os | ||
import sys | ||
sys.path.insert(0, os.path.join(os.pardir, os.pardir)) | ||
from testing_harness import TestHarness | ||
|
||
|
||
if __name__ == '__main__': | ||
def test_complex_cell(request): | ||
harness = TestHarness('statepoint.10.h5') | ||
harness.request = request | ||
harness.main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
#!/usr/bin/env python | ||
from tests.testing_harness import TestHarness | ||
|
||
import os | ||
import sys | ||
sys.path.insert(0, os.path.join(os.pardir, os.pardir)) | ||
from testing_harness import TestHarness | ||
|
||
|
||
if __name__ == '__main__': | ||
def test_confidence_intervals(request): | ||
harness = TestHarness('statepoint.10.h5') | ||
harness.request = request | ||
harness.main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
#!/usr/bin/env python | ||
from tests.testing_harness import TestHarness | ||
|
||
import os | ||
import sys | ||
sys.path.insert(0, os.path.join(os.pardir, os.pardir)) | ||
from testing_harness import TestHarness | ||
|
||
|
||
if __name__ == '__main__': | ||
def test_density(request): | ||
harness = TestHarness('statepoint.10.h5') | ||
harness.request = request | ||
harness.main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
#!/usr/bin/env python | ||
from tests.testing_harness import TestHarness | ||
|
||
import os | ||
import sys | ||
sys.path.insert(0, os.path.join(os.pardir, os.pardir)) | ||
from testing_harness import TestHarness | ||
|
||
|
||
if __name__ == '__main__': | ||
def test_eigenvalue_genperbatch(request): | ||
harness = TestHarness('statepoint.7.h5') | ||
harness.request = request | ||
harness.main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
#!/usr/bin/env python | ||
from tests.testing_harness import TestHarness | ||
|
||
import os | ||
import sys | ||
sys.path.insert(0, os.path.join(os.pardir, os.pardir)) | ||
from testing_harness import TestHarness | ||
|
||
|
||
if __name__ == '__main__': | ||
def test_eigenvalue_no_inactive(request): | ||
harness = TestHarness('statepoint.10.h5') | ||
harness.request = request | ||
harness.main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
#!/usr/bin/env python | ||
from tests.testing_harness import TestHarness | ||
|
||
import os | ||
import sys | ||
sys.path.insert(0, os.path.join(os.pardir, os.pardir)) | ||
from testing_harness import TestHarness | ||
|
||
|
||
if __name__ == '__main__': | ||
def test_energy_grid(request): | ||
harness = TestHarness('statepoint.10.h5') | ||
harness.request = request | ||
harness.main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.