mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Adding Python init file.
This commit is contained in:
parent
2b2bc9a468
commit
326eddc469
2 changed files with 10 additions and 3 deletions
9
tests/unit_tests/cad/__init__.py
Normal file
9
tests/unit_tests/cad/__init__.py
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import numpy as np
|
||||
import pytest
|
||||
|
||||
|
||||
def assert_unbounded(obj):
|
||||
"""Assert that a region/cell is unbounded."""
|
||||
ll, ur = obj.bounding_box
|
||||
assert ll == pytest.approx((-np.inf, -np.inf, -np.inf))
|
||||
assert ur == pytest.approx((np.inf, np.inf, np.inf))
|
||||
|
|
@ -1,8 +1,6 @@
|
|||
|
||||
import pytest
|
||||
|
||||
from subprocess import call
|
||||
|
||||
def test_cad():
|
||||
assert not call(["openmc"])
|
||||
assert not call(['openmc'])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue