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

[uss_qualifier] Make scenario doc cache attribute name depend on scenario name #382

Merged
merged 1 commit into from
Dec 1, 2023

Conversation

mickmis
Copy link
Contributor

@mickmis mickmis commented Dec 1, 2023

In an attempt to write a new scenario by inheriting from another one, I bumped into the issue that the doc in the .md file would not be properly recognized by the test framework when both scenarios are invoked in a single test run.
That is due to the fact that as when the test framework loads the documentation, it caches it as an attribute of the scenario's class. However if scenarios inherit from each other this mechanism does not work well. Making the attribute name depends on the scenario's class name is an easy fix to that issue.

Copy link
Member

@BenjaminPelletier BenjaminPelletier left a comment

Choose a reason for hiding this comment

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

Nice :)

@BenjaminPelletier BenjaminPelletier merged commit cdd2c26 into interuss:main Dec 1, 2023
9 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.

2 participants