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

Fix bug in command-not-run command set and test #222

Merged
merged 1 commit into from
Apr 13, 2022

Conversation

taldcroft
Copy link
Member

@taldcroft taldcroft commented Apr 8, 2022

Description

There was a problem with the Command not run command set that was missed in testing. It had previously worked when the cmds2.h5 was generated, but a subsequent change broke it, but this was not seen until I regenerated the commands now.

This PR fixes the problem and adds complete testing of all the allowed command sets.

Note: in order for tests to pass this is based off of #221 and the merge request is into that branch.

Interface impacts

None.

Testing

Unit tests

  • Mac

Independent check of unit tests by Javier

  • Mac

Functional tests

No functional testing.

@taldcroft taldcroft requested a review from jeanconn April 8, 2022 10:29
Copy link
Contributor

@javierggt javierggt left a comment

Choose a reason for hiding this comment

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

The changes are simple enough, and I verified that the test introduced in this PR (kadi/commands/tests/test_commands.py::test_get_cmds_from_event_all) fails with the previous version of command_sets.py, so this PR indeed fixes the bug being tested for.

All 167 unit tests also passed

@taldcroft taldcroft merged commit 728fc9a into update-obs-parms Apr 13, 2022
@taldcroft taldcroft deleted the fix-command-not-run branch April 13, 2022 15:53
@jeanconn
Copy link
Contributor

Late to party but I did the same review and came to the same conclusion (good to go).

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.

3 participants