We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a42d81 commit cd5c408Copy full SHA for cd5c408
tests/test_remote_control.py
@@ -45,7 +45,8 @@ def _generate(self):
45
return True
46
47
def _cross_section(self, kin):
48
- return CrossSectionData()
+ self._lib.crranma4.ntot += 1
49
+ return CrossSectionData(inelastic=float(self._lib.crranma4.ntot))
50
51
def _set_kinematics(self, kin):
52
self._kin = kin
@@ -76,6 +77,9 @@ def test_dummy_1(timeout):
76
77
78
assert model.random_state.counter == 5
79
80
+ c = model.cross_section(kin)
81
+ assert c.inelastic == 5
82
+
83
84
@pytest.mark.parametrize("timeout", (100, 0))
85
def test_dummy_2(timeout):
0 commit comments