Test Suite Package#
Subpackages#
- Tests Package
- Submodules
- Test Avatar Class
TestAvatarTestAvatar.setUp()TestAvatar.test_avatar_json_with_item()TestAvatar.test_avatar_json_with_none_item()TestAvatar.test_avatar_set_item()TestAvatar.test_avatar_set_item_fail()TestAvatar.test_avatar_set_position()TestAvatar.test_avatar_set_position_None()TestAvatar.test_avatar_set_position_fail()TestAvatar.test_avatar_set_score()TestAvatar.test_avatar_set_score_fail()
- Test Avatar Inventory
TestAvatarInventoryTestAvatarInventory.setUp()TestAvatarInventory.test_avatar_drop_held_item()TestAvatarInventory.test_avatar_drop_held_item_none()TestAvatarInventory.test_avatar_pick_up()TestAvatarInventory.test_avatar_pick_up_extra()TestAvatarInventory.test_avatar_pick_up_full_inventory()TestAvatarInventory.test_avatar_pick_up_return_none()TestAvatarInventory.test_avatar_pick_up_surplus()TestAvatarInventory.test_avatar_set_inventory()TestAvatarInventory.test_avatar_set_inventory_fail_1()TestAvatarInventory.test_avatar_set_inventory_fail_2()TestAvatarInventory.test_avatar_set_max_inventory_size()TestAvatarInventory.test_avatar_set_max_inventory_size_fail()TestAvatarInventory.test_take()TestAvatarInventory.test_take_fail()TestAvatarInventory.test_take_none()
- Test Example Class
- Test Gameboard Class
TestGameBoardTestGameBoard.setUp()TestGameBoard.test_game_board_json()TestGameBoard.test_get_objects_avatar()TestGameBoard.test_get_objects_occupiable_station()TestGameBoard.test_get_objects_occupiable_station_2()TestGameBoard.test_get_objects_station()TestGameBoard.test_get_objects_wall()TestGameBoard.test_locations_fail()TestGameBoard.test_locations_incorrect_fail()TestGameBoard.test_map_size_fail()TestGameBoard.test_seed_fail()TestGameBoard.test_walled_fail()
- Test Gameboard (No Generation)
TestGameBoardTestGameBoard.setUp()TestGameBoard.test_game_board_json()TestGameBoard.test_generate_map()TestGameBoard.test_locations()TestGameBoard.test_locations_fail_type()TestGameBoard.test_map_size()TestGameBoard.test_map_size_fail()TestGameBoard.test_seed()TestGameBoard.test_seed_fail()TestGameBoard.test_walled()TestGameBoard.test_walled_fail()
- Test Initialization Class
- Test Interact Controller Class
- Test Inventory Controller Class
TestInventoryControllerTestInventoryController.check_inventory_item()TestInventoryController.setUp()TestInventoryController.test_select_slot_0()TestInventoryController.test_select_slot_1()TestInventoryController.test_select_slot_2()TestInventoryController.test_select_slot_3()TestInventoryController.test_select_slot_4()TestInventoryController.test_select_slot_5()TestInventoryController.test_select_slot_6()TestInventoryController.test_select_slot_7()TestInventoryController.test_select_slot_8()TestInventoryController.test_select_slot_9()TestInventoryController.test_with_out_of_bounds()TestInventoryController.test_with_wrong_action_type()
- Test Item Class
TestItemTestItem.setUp()TestItem.test_item_json()TestItem.test_pick_up()TestItem.test_pick_up_surplus()TestItem.test_pick_up_wrong_object_type()TestItem.test_set_durability()TestItem.test_set_durability_fail()TestItem.test_set_durability_none()TestItem.test_set_durability_stack_size_fail()TestItem.test_set_quantity()TestItem.test_set_quantity_fail()TestItem.test_set_quantity_fail_greater_than_0()TestItem.test_set_quantity_fail_stack_size()TestItem.test_set_value()TestItem.test_set_value_fail()TestItem.test_stack_size()TestItem.test_stack_size_fail()TestItem.test_stack_size_fail_quantity()
- Test Master Controller Class
- Test Movement Controller Class
- Test Movement Controller with Occupiable Stations the Avatar can Occupy
TestMovementControllerIfOccupiableStationIsOccupiableTestMovementControllerIfOccupiableStationIsOccupiable.setUp()TestMovementControllerIfOccupiableStationIsOccupiable.test_move_down()TestMovementControllerIfOccupiableStationIsOccupiable.test_move_left()TestMovementControllerIfOccupiableStationIsOccupiable.test_move_right()TestMovementControllerIfOccupiableStationIsOccupiable.test_move_up()
- Test Movement Controller with Occupiable Stations
TestMovementControllerIfOccupiableStationsTestMovementControllerIfOccupiableStations.setUp()TestMovementControllerIfOccupiableStations.test_move_down()TestMovementControllerIfOccupiableStations.test_move_down_fail()TestMovementControllerIfOccupiableStations.test_move_left()TestMovementControllerIfOccupiableStations.test_move_left_fail()TestMovementControllerIfOccupiableStations.test_move_right()TestMovementControllerIfOccupiableStations.test_move_right_fail()TestMovementControllerIfOccupiableStations.test_move_up()TestMovementControllerIfOccupiableStations.test_move_up_fail()
- Test Movement Controller with Stations the Avatar Can’t Occupy
TestMovementControllerIfStationsTestMovementControllerIfStations.setUp()TestMovementControllerIfStations.test_move_down()TestMovementControllerIfStations.test_move_down_fail()TestMovementControllerIfStations.test_move_left()TestMovementControllerIfStations.test_move_left_fail()TestMovementControllerIfStations.test_move_right()TestMovementControllerIfStations.test_move_right_fail()TestMovementControllerIfStations.test_move_up_fail()
- Test Movement Controller with Walls
TestMovementControllerIfWallTestMovementControllerIfWall.setUp()TestMovementControllerIfWall.test_move_down()TestMovementControllerIfWall.test_move_down_fail()TestMovementControllerIfWall.test_move_left()TestMovementControllerIfWall.test_move_left_fail()TestMovementControllerIfWall.test_move_right()TestMovementControllerIfWall.test_move_right_fail()TestMovementControllerIfWall.test_move_up()TestMovementControllerIfWall.test_move_up_fail()
- Test Occupiable Class
TestOccupiableTestOccupiable.test_is_occupied_by_game_obj()TestOccupiable.test_is_occupied_by_game_object()TestOccupiable.test_is_occupied_by_object_type()TestOccupiable.test_on_station()TestOccupiable.test_on_top_of_stack()TestOccupiable.test_place_on_stack()TestOccupiable.test_remove_form_occupied_by_2_stack()TestOccupiable.test_remove_from_occupied_by_duplicates()TestOccupiable.test_remove_from_occupied_by_duplicates_2()TestOccupiable.test_remove_from_occupied_twice()TestOccupiable.test_remove_game_obj_from_occupied_by()TestOccupiable.test_remove_obj_type_from_occupied_by()
- Test Occupiable Station Class
- Test Place Controller Class
- Test Player Class
TestPlayerTestPlayer.setUp()TestPlayer.test_actions()TestPlayer.test_actions_empty_list()TestPlayer.test_actions_fail_none()TestPlayer.test_avatar()TestPlayer.test_avatar_fail_string()TestPlayer.test_avatar_none()TestPlayer.test_functional_fail_int()TestPlayer.test_functional_false()TestPlayer.test_functional_true()TestPlayer.test_object_type()TestPlayer.test_object_type_fail_int()TestPlayer.test_object_type_fail_none()TestPlayer.test_player_json()TestPlayer.test_team_name()TestPlayer.test_team_name_fail_int()TestPlayer.test_team_name_none()
- Test Station Class
- Test Tile Class
- Test Utils Class
- Module contents
Submodules#
Runner File#
Utils File#
This file is used as utilities to help simplify unit tests. The spell_check() method will take in a given exception string message and expected string message to compare the two. If a discrepancy is not found, the spell check() method will return true. Otherwise, it will print what the discrepancy is and return false.