mirror of
https://github.com/gsi-upm/soil
synced 2025-08-23 19:52:19 +00:00
Add conditional time values
This commit is contained in:
@@ -18,7 +18,7 @@ class TestMain(TestCase):
|
||||
d = Dead(unique_id=0, model=environment.Environment())
|
||||
ret = d.step().abs(0)
|
||||
print(ret, "next")
|
||||
assert ret == stime.INFINITY
|
||||
assert ret == stime.NEVER
|
||||
|
||||
def test_die_raises_exception(self):
|
||||
'''A dead agent should raise an exception if it is stepped after death'''
|
||||
|
@@ -50,7 +50,6 @@ class Exporters(TestCase):
|
||||
|
||||
for env in s.run_simulation(exporters=[Dummy], dry_run=True):
|
||||
assert len(env.agents) == 1
|
||||
assert env.now == max_time
|
||||
|
||||
assert Dummy.started
|
||||
assert Dummy.ended
|
||||
|
Reference in New Issue
Block a user