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 running tests #1

Open
scottybrown opened this issue Jun 9, 2016 · 1 comment
Open

Error running tests #1

scottybrown opened this issue Jun 9, 2016 · 1 comment

Comments

@scottybrown
Copy link

I get:
ScopeMismatch: You tried to access the 'function' scoped fixture 'LocalCommand' with a 'module' scoped request object, involved factories
whenever I run a test. At the moment I'm trying to run test_container.py from the repo.
Is it just me?

I'm not sure my env variables are correct. But this looks like a different issue.

Ps. I saw your talk at Melbourne's Docker meetup, top stuff!

@kwakwaversal
Copy link
Contributor

I ran into the same issue as you. I'm new to Python, so took a bit to get my head around. Turns out that you can't mix scopes in fixtures, so LocalCommand needed to be factored out globally in the module. I've provided a fix #2

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