Re: [pytest-dev] Not running standard pytest collector for file spec/*_spec.py

2018-03-13 Thread Bruno Oliveira
Ringo, On Tue, Mar 13, 2018 at 7:49 AM Ringo De Smet wrote: > Bruno, > > On Tue, Mar 13, 2018 at 11:32 AM, Bruno Oliveira > wrote: > >> >> But looking at your original error more closely: >> >> ``` >> spec/action_base_spec.py:20: in >> with description('ActionBase') as self: >> E Attribu

Re: [pytest-dev] Not running standard pytest collector for file spec/*_spec.py

2018-03-13 Thread Ringo De Smet
Bruno, On Tue, Mar 13, 2018 at 11:32 AM, Bruno Oliveira wrote: > > But looking at your original error more closely: > > ``` > spec/action_base_spec.py:20: in > with description('ActionBase') as self: > E AttributeError: __enter__ > ``` > > It is not clear to me why this is breaking becaus

Re: [pytest-dev] Not running standard pytest collector for file spec/*_spec.py

2018-03-13 Thread Bruno Oliveira
Hi Ringo, On Tue, Mar 13, 2018 at 4:40 AM Ringo De Smet wrote: > Ronny, Bruno, > > On Mon, Mar 12, 2018 at 8:10 PM, Bruno Oliveira > wrote: > >> Hi Ringo, >> >> It is as Ronny said, you can see the code responsible for that here: >> >> https://github.com/pytest-dev/pytest/blob/master/_pytest/py

Re: [pytest-dev] Not running standard pytest collector for file spec/*_spec.py

2018-03-13 Thread Ringo De Smet
Ronny, Bruno, On Mon, Mar 12, 2018 at 8:10 PM, Bruno Oliveira wrote: > Hi Ringo, > > It is as Ronny said, you can see the code responsible for that here: > > https://github.com/pytest-dev/pytest/blob/master/_pytest/python.py#L162 > > When the file has a `.py` extension and is one of the "inipath

Re: [pytest-dev] Not running standard pytest collector for file spec/*_spec.py

2018-03-12 Thread Bruno Oliveira
Hi Ringo, It is as Ronny said, you can see the code responsible for that here: https://github.com/pytest-dev/pytest/blob/master/_pytest/python.py#L162 When the file has a `.py` extension and is one of the "inipaths" (paths given explicitly in the command line), then the `python` plugin will coll

Re: [pytest-dev] Not running standard pytest collector for file spec/*_spec.py

2018-03-12 Thread RonnyPfannschmidt
Hi Ringo, if pytest is given a explicit filename, it just goes for the file, even if it doesn't match the glob for python files when searching automatically -- Ronny Am 12.03.2018 um 17:08 schrieb Ringo De Smet: > Hello, > > I am in the process of implementing a pytest plugin to run mamba tests

[pytest-dev] Not running standard pytest collector for file spec/*_spec.py

2018-03-12 Thread Ringo De Smet
Hello, I am in the process of implementing a pytest plugin to run mamba tests as a pytest plugin. Running pytest without any arguments works correctly: pytest picks up tests using the python and unittest plugins from the tests folder and picks up the mamba tests from the spec folder. The problem