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

Add test for StartMissionDefinition #500

Merged

Conversation

tsundvoll
Copy link
Contributor

since we could have better test coverage for the to_isar_mission(mission_definition) function

@tsundvoll tsundvoll added the refactor Refactoring of old functionality label Nov 6, 2023
@tsundvoll tsundvoll self-assigned this Nov 6, 2023
Copy link
Contributor

@andchiind andchiind left a comment

Choose a reason for hiding this comment

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

LGTM

assert task.tag_id == "MY-TAG-123"

first_step = task.steps[0]
# assert first_step.id == "generated_inspection_id"
Copy link
Contributor

Choose a reason for hiding this comment

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

Do these fail?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, line 82 would fail, therefore it is commented out for now. It might be desired behavior, since the .id attribute will be set by the constructor.

@tsundvoll tsundvoll merged commit 5dad445 into equinor:main Nov 8, 2023
3 checks passed
@tsundvoll tsundvoll deleted the add-test-for-start-mission-definition branch November 8, 2023 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Refactoring of old functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants