Implement 26.3 food consumption
This commit is contained in:
@@ -12,14 +12,17 @@ class TestCropCaching(unittest.TestCase):
|
||||
crop_state = object()
|
||||
cache_state = Munch(silent=False)
|
||||
sleep_state = Munch(silent=False)
|
||||
eat_state = object()
|
||||
jobs = JobStates.__new__(JobStates)
|
||||
jobs.gather_crop_states = crop_state
|
||||
jobs.cache_items_states = cache_state
|
||||
jobs.sleep_with_bed_states = sleep_state
|
||||
jobs.eat_food_states = eat_state
|
||||
|
||||
try:
|
||||
machines = JobStates.farm_crop(jobs)
|
||||
self.assertEqual(machines, [crop_state, sleep_state, cache_state])
|
||||
self.assertEqual(
|
||||
machines, [crop_state, sleep_state, eat_state, cache_state])
|
||||
self.assertTrue(cache_state.silent)
|
||||
self.assertTrue(sleep_state.silent)
|
||||
self.assertTrue({
|
||||
|
||||
Reference in New Issue
Block a user