Fix broken docbuild

This commit is contained in:
Paul Romano 2018-11-26 23:01:13 -06:00
parent 5818ec363e
commit 0251dfe834
2 changed files with 7 additions and 4 deletions

View file

@ -38,8 +38,11 @@ else:
from unittest.mock import Mock
_dll = Mock()
dagmc_enabled = bool(c_bool.in_dll(_dll, "dagmc_enabled"))
def _dagmc_enabled():
return c_bool.in_dll(_dll, "dagmc_enabled").value
from .error import *
from .core import *
from .nuclide import *

View file

@ -6,7 +6,7 @@ import pytest
from tests.testing_harness import PyAPITestHarness
pytestmark = pytest.mark.skipif(
not openmc.capi.dagmc_enabled,
not openmc.capi._dagmc_enabled(),
reason="DAGMC CAD geometry is not enabled.")
def test_dagmc():
@ -22,7 +22,7 @@ def test_dagmc():
model.settings.source = source
model.settings.dagmc = True
# tally
tally = openmc.Tally()
tally.scores = ['total']