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

Implement tests for #130. #132

Merged
merged 3 commits into from
Aug 26, 2024

Conversation

Imaniac230
Copy link
Contributor

Hi, I am creating a followup to #130 with added tests for the status handling and state changes. I wanted to test as many cases as possible, so I hope it's not too bloated.

The tests check the following new scenarios (these checks should be passing with the recent changes and would not be passing before the changes):

  1. When the mobility command feedback status is not STATUS_PROCESSING, whether the last_sit_command/last_stand_command is correctly reset and the is_sitting/is_standing state remains unmodified.
  2. When a velocity movement command is processed (trajectory commands are currently not included in the test), whether the is_sitting and is_standing states are reflecting the change.

The tests also check the already existing behavior when handling a valid sit/stand feedback status (STATUS_IN_PROGRESS, STATUS_IS_STANDING, STATUS_IS_SITTING).

@Imaniac230 Imaniac230 changed the title Implement tests for 72adf67551ff2dcb23887dac269821189d84d9a2. Implement tests for https://github.com/bdaiinstitute/spot_wrapper/pull/130. Aug 21, 2024
@Imaniac230 Imaniac230 changed the title Implement tests for https://github.com/bdaiinstitute/spot_wrapper/pull/130. Implement tests for #130. Aug 21, 2024
Copy link
Collaborator

@khughes-bdai khughes-bdai left a comment

Choose a reason for hiding this comment

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

LGTM -- tested locally and tests are all passing. Thanks!

Copy link
Collaborator

@mhidalgo-bdai mhidalgo-bdai left a comment

Choose a reason for hiding this comment

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

LGTM2

spot_wrapper/tests/test_wrapper.py Outdated Show resolved Hide resolved
Imaniac230 and others added 2 commits August 23, 2024 19:21
* checking correct handling of any non-PROCESSING mobility command status
* checking handling of valid command transitions - from in-progress to finished
* checking robot states after velocity movement commands
@khughes-bdai khughes-bdai merged commit 4797533 into bdaiinstitute:main Aug 26, 2024
3 of 6 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.

4 participants