Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

94 improve exception strings #129

Merged
merged 10 commits into from
Jan 10, 2024
Merged

Conversation

CaitlinAzazel
Copy link
Collaborator

Improved ValueErrors in Game file with the structure of f'{self.class.name}.<var_name> must be a It is a(n) {type(<var_name>)} with the value of {var_name}.' in game_board.py and The object type of the object is not handled properly. The object type passed in is {temp}.

…}.<var_name> must be a It is a(n) {type(<var_name>)} with the value of {var_name}'
…}.<var_name> must be a It is a(n) {type(<var_name>)} with the value of {var_name}.' in game_board.py and added periods to the errors in item.py.
…}.<var_name> must be a It is a(n) {type(<var_name>)} with the value of {var_name}.' in game_board.py and added periods to the errors in item.py.
…}.<var_name> must be a It is a(n) {type(<var_name>)} with the value of {var_name}.' in game_board.py and added periods to the errors in item.py.
…}.<var_name> must be a It is a(n) {type(<var_name>)} with the value of {var_name}.' in game_board.py and added periods to the errors in item.py.
…}.<var_name> must be a It is a(n) {type(<var_name>)} with the value of {var_name}.' in game_board.py and changed occupational_station.py and tile.py to ValueError to The object type of the object is not handled properly. The object type passed in is {temp}.
@CaitlinAzazel CaitlinAzazel added the enhancement New feature or request label Nov 18, 2023
@CaitlinAzazel CaitlinAzazel self-assigned this Nov 18, 2023
@CaitlinAzazel CaitlinAzazel linked an issue Nov 18, 2023 that may be closed by this pull request
Copy link
Collaborator

@JuliaCaesar JuliaCaesar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the checks are failing, please look through and make sure all the checks are passing.

…ar_inventory.py, test_game_board_no_gen.py, test_item.py, test_occupiable_station.py, and test_station.py so that their error messages matched in both their main file and test file. Still need to fix OccupiableStation test_fail_item_occ, test_set_quantity_fail_greater_than_0, test_set_quantity_fail_stack_size, and test_stack_size_fail_quantity
…ar_inventory.py, test_game_board_no_gen.py, test_item.py, test_occupiable_station.py, and test_station.py so that their error messages matched in both their main file and test file. Still need to fix OccupiableStation test_fail_item_occ, test_set_quantity_fail_greater_than_0, test_set_quantity_fail_stack_size, and test_stack_size_fail_quantity
Copy link
Collaborator

@KingPhilip14 KingPhilip14 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@KingPhilip14 KingPhilip14 merged commit 93fc5b1 into master Jan 10, 2024
1 check passed
@KingPhilip14 KingPhilip14 deleted the 94-improve-exception-strings branch January 10, 2024 20:15
@CaitlinAzazel CaitlinAzazel restored the 94-improve-exception-strings branch February 17, 2024 01:56
@CaitlinAzazel CaitlinAzazel deleted the 94-improve-exception-strings branch February 17, 2024 02:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve exception strings
3 participants