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

feat: add message when move towards is rejected #1669

Merged
merged 1 commit into from May 31, 2022

Conversation

razvan-pro
Copy link
Collaborator

@razvan-pro razvan-pro commented May 30, 2022

This change is Reviewable

@razvan-pro razvan-pro self-assigned this May 30, 2022
Copy link
Member

@faucomte97 faucomte97 left a comment

Choose a reason for hiding this comment

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

Reviewed 3 of 3 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @razvan-pro)


aimmo-game/tests/test_simulation/test_action.py line 59 at r1 (raw file):

        assert self.avatar.events == [event.FailedMoveEvent(ORIGIN, NORTH_OF_ORIGIN)]

    def test_failed_move_towards_action(self):

How does this test work? o.O
I can't see how the avatar goes towards another stationary avatar.

Copy link
Collaborator Author

@razvan-pro razvan-pro left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @faucomte97)


aimmo-game/tests/test_simulation/test_action.py line 59 at r1 (raw file):

Previously, faucomte97 (Florian Aucomte) wrote…

How does this test work? o.O
I can't see how the avatar goes towards another stationary avatar.

I think it's because can_move_to returns False on any location on EmptyMap - I mostly copied from the test above 😄

The test coverage doesn't work though. I'm checking for REJECT_MESSAGE below, so it definitely goes through there - we should probably force?

Copy link
Member

@faucomte97 faucomte97 left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @razvan-pro)

@codecov
Copy link

codecov bot commented May 31, 2022

Codecov Report

Merging #1669 (7e1c8a4) into master (a802171) will decrease coverage by 0.09%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1669      +/-   ##
==========================================
- Coverage   67.54%   67.44%   -0.10%     
==========================================
  Files         171      171              
  Lines        3500     3505       +5     
  Branches      297      297              
==========================================
  Hits         2364     2364              
- Misses       1104     1109       +5     
  Partials       32       32              
Impacted Files Coverage Δ
aimmo-game/simulation/action.py 0.00% <0.00%> (ø)

@razvan-pro razvan-pro merged commit 4682692 into master May 31, 2022
@razvan-pro razvan-pro deleted the move-towards-message branch May 31, 2022 12:04
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.

None yet

2 participants