New issue 294: Fixture is not overriden in the child conftest.py when running 
individual test file
https://bitbucket.org/hpk42/pytest/issue/294/fixture-is-not-overriden-in-the-child

Oleg Pidsadnyi:

If I have the package with the conftest.py:

```
#!python

from pytest import fixture

def foo():
    return 'parent'

```

And I have subfolder with conftest.py:

```
#!python

from pytest import fixture

def foo():
    return 'child'

```

And the test_foo.py in the same subfolder:


```
#!python

def test_foo(foo):
    assert foo == 'child'
```

It works when I simply run py.test.

It doesn't work when I run py.test subfolder/test_foo.py

For some reason the value is 'parent', not 'child'


--

This is an issue notification from bitbucket.org. You are receiving
this either because you are the owner of the issue, or you are
following the issue.
_______________________________________________
pytest-commit mailing list
pytest-commit@python.org
http://mail.python.org/mailman/listinfo/pytest-commit

Reply via email to