Skip to content

Commit cd5c408

Browse files
committed
fix
1 parent 4a42d81 commit cd5c408

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/test_remote_control.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ def _generate(self):
4545
return True
4646

4747
def _cross_section(self, kin):
48-
return CrossSectionData()
48+
self._lib.crranma4.ntot += 1
49+
return CrossSectionData(inelastic=float(self._lib.crranma4.ntot))
4950

5051
def _set_kinematics(self, kin):
5152
self._kin = kin
@@ -76,6 +77,9 @@ def test_dummy_1(timeout):
7677

7778
assert model.random_state.counter == 5
7879

80+
c = model.cross_section(kin)
81+
assert c.inelastic == 5
82+
7983

8084
@pytest.mark.parametrize("timeout", (100, 0))
8185
def test_dummy_2(timeout):

0 commit comments

Comments
 (0)