MCPcopy Create free account
hub / github.com/Cantera/cantera / test_eval_error

Method test_eval_error

test/python/test_reaction.py:1784–1789  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1782 assert R.type == "user-rate-1"
1783
1784 def test_eval_error(self):
1785 # Instantiate with non-numeric A factor to cause an exception during evaluation
1786 R = ct.ReactionRate.from_dict({"type": "user-rate-1", "A": 12})
1787 R.eval_error = True
1788 with pytest.raises(ValueError):
1789 self.eval_rate(R)
1790
1791
1792@pytest.fixture(scope='function')

Callers

nothing calls this directly

Calls 2

eval_rateMethod · 0.95
from_dictMethod · 0.45

Tested by

no test coverage detected