We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Tests break when Running step decorated function outside test or fixture
Running this simple test shows the error:
import allure with allure.step("step outside"): pass def test1(): assert 1 == 1
________________________ ERROR collecting test_one.py _________________________ test_one.py:7: in <module> with allure.step("step outside"): d:\work\allure-python\allure-python-commons\allure_commons\_allure.py:131: in __enter__ plugin_manager.hook.start_step(uuid=self.uuid, title=self.title, params=params) c:\python36\lib\site-packages\pluggy\__init__.py:617: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) c:\python36\lib\site-packages\pluggy\__init__.py:222: in _hookexec return self._inner_hookexec(hook, methods, kwargs) c:\python36\lib\site-packages\pluggy\__init__.py:216: in <lambda> firstresult=hook.spec_opts.get('firstresult'), d:\work\allure-python\allure-pytest\allure_pytest\listener.py:38: in start_step self.allure_logger.start_step(None, uuid, step) d:\work\allure-python\allure-python-commons\allure_commons\reporter.py:77: in start_step self._items[parent_uuid].steps.append(step) E KeyError: None !!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!
Simply ignore the allure step.
Sometimes we can decorate a function as step and this function is used outside a test function or fixture. This should not break the tests.
The text was updated successfully, but these errors were encountered:
Added test case for allure-python bug allure-framework#232.
80b7fb0
82a3d51
handle steps outside tests/fixtures without breaking test (fixes allu…
6c2c410
…re-framework#232 via allure-framework#233)
8960fa7
No branches or pull requests
I'm submitting a ...
What is the current behavior?
Tests break when Running step decorated function outside test or fixture
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
Running this simple test shows the error:
What is the expected behavior?
Simply ignore the allure step.
What is the motivation / use case for changing the behavior?
Sometimes we can decorate a function as step and this function is used outside a test function or fixture. This should not break the tests.
Please tell us about your environment:
Other information
The text was updated successfully, but these errors were encountered: