Open GamalielMasters opened 1 month ago
Narrowed this down quite a bit more. It has nothing to do with my original idea... in fact, it occurs because the following line appeared in the referenced test file:
from unittest.mock import call
If I do the import as:
import unitest.mock as mock
.
.
.
...mock.call...
it works fine however...
Something about injecting "call" into the namespace of the module causes the above exception. You don't even have to use it, simply adding a test file with just the import line to the project will cause collection to terminate with the exception.
After adding and configuring pytest-bdd-ng I can no longer run any of my unit tests because pytest crashes with the following exception:
The following is my configuration (pyproject.toml):
The crash occurs as soon as my first unit test module is being collected. ~I think that the "problem" has something to do with the fact that I have fixtures in my conftest.py files (for my unit tests) which return dictionaries...~
~I'm not certain why pytest-bdd-ng is attempting to execute and cache all the fixture results, if that is in fact what's happening.~ See update and workaround below.