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

Refactor, unit tests, bug fixes #23

Merged
merged 6 commits into from
Jan 15, 2024
Merged

Refactor, unit tests, bug fixes #23

merged 6 commits into from
Jan 15, 2024

Conversation

ryanleonbutler
Copy link
Owner

Refactor, unit tests, bug fixes

ryanleonbutler and others added 6 commits January 15, 2024 14:23
Motivation:
- Updated imports
- Updated types
- Fixed some bugs in tests

Modification:
- Updated imports
- Updated types
- Fixed some bugs in tests

Result:
- Improved typing
- LSP not getting errors for imports in tests
- Tests pass

Testing:
- `poetry run pytest -vs`
Motivation:
- when trying to equip items it was not working

Modification:
- modified equip action
- also improved player_input to return command and arguments

Result:
- equip now works as expected
- can equip items with just 'e' and then wait for next prompt or add an
  argument with item name with 'e'

Testing:
- poetry run pytest -vs
Motivation:
- Unit tests helped fixed some bugs

Modification:
- Some bugs with inventory and to equip items
- made some things more readable

Result:
- Additional unit tests
- Improved readablity

Testing:
- poetry run pytest -vs
- poetry run black_star
@ryanleonbutler ryanleonbutler merged commit cc3031b into main Jan 15, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant