Skip to content

Commit

Permalink
More tests to make codecov green
Browse files Browse the repository at this point in the history
  • Loading branch information
EwoutH committed Aug 29, 2024
1 parent 2958838 commit bca99d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ def test_model_set_up():
assert model.current_id == 0
assert model.current_id + 1 == model.next_id()
assert model.current_id == 1
assert model.steps == 0
model.step()
assert model.steps == 1


def test_running():
Expand All @@ -18,12 +20,12 @@ class TestModel(Model):

def step(self):
"""Increase steps until 10."""
self.steps += 1
if self.steps == 10:
self.running = False

model = TestModel()
model.run_model()
assert model.steps == 10


def test_seed(seed=23):
Expand Down

0 comments on commit bca99d0

Please sign in to comment.