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

Error execute tests: AttributeError: __exit__ #102

Open
megetron opened this issue Feb 11, 2018 · 1 comment
Open

Error execute tests: AttributeError: __exit__ #102

megetron opened this issue Feb 11, 2018 · 1 comment

Comments

@megetron
Copy link

Working with python 2.7 shows me exception:

'''
tests/tasks/test_tasks.py:10: in
with description('Refactoring Goodies') as self:
E AttributeError: exit
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

'''

Nothing special on test. Just copy/paste examples here and got the error.

@ringods
Copy link

ringods commented Mar 13, 2018

@megetron are you running your mamba tests with pytest? You should run your tests with the mamba CLI tool. Also, try to name your mamba tests *_spec.py. Files with patterns test_*.py or *_test.py are picked up by unittest or pytest frameworks.

See the mamba docs for more info: https://mamba-bdd.readthedocs.io/en/latest/getting-started.html#your-first-example

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

2 participants