def test_create_only_one_conflict(self): world = World.objects.get(id=2) for unit in WorldUnit.objects.filter(world=world): initialize_unit(unit) pass_turn(None, None, World.objects.filter(id=2)) pass_turn(None, None, World.objects.filter(id=2)) self.assertEqual(Battle.objects.count(), 1) Battle.objects.filter(tile__world=world).update(current=False) pass_turn(None, None, World.objects.filter(id=2)) self.assertEqual(Battle.objects.count(), 2)
def test_pass_turn_admin_action(self): pass_turn(None, None, World.objects.all())
def test_pass_one_year_in_emortuus(self): for i in range(12): pass_turn(None, None, World.objects.all())