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

behave: context.failed is a read-only attribute #1195

Open
nicholasyang2022 opened this issue May 25, 2023 · 0 comments
Open

behave: context.failed is a read-only attribute #1195

nicholasyang2022 opened this issue May 25, 2023 · 0 comments

Comments

@nicholasyang2022
Copy link
Collaborator

The step functions in behave test try to indicate failures by setting context.failed to True. This does work in the expected way, because context.failed is a read-only attribute[1]. A failure should be indicated by throwing an exception.

[1] https://behave.readthedocs.io/en/latest/context_attributes.html?highlight=context#behave-attributes

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

No branches or pull requests

1 participant