Skip to content

Commit bca99d0

Browse files
committed
More tests to make codecov green
1 parent 2958838 commit bca99d0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_model.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ def test_model_set_up():
99
assert model.current_id == 0
1010
assert model.current_id + 1 == model.next_id()
1111
assert model.current_id == 1
12+
assert model.steps == 0
1213
model.step()
14+
assert model.steps == 1
1315

1416

1517
def test_running():
@@ -18,12 +20,12 @@ class TestModel(Model):
1820

1921
def step(self):
2022
"""Increase steps until 10."""
21-
self.steps += 1
2223
if self.steps == 10:
2324
self.running = False
2425

2526
model = TestModel()
2627
model.run_model()
28+
assert model.steps == 10
2729

2830

2931
def test_seed(seed=23):

0 commit comments

Comments
 (0)