jgirardet / pytest-ponyorm

PonyORM in Pytest
GNU General Public License v3.0
4 stars 2 forks source link

Fixture not found, but only on one project #4

Closed Elijas closed 5 years ago

Elijas commented 5 years ago

Hi! Glad to have found this project, exactly what I was looking for.

However, I can't get it to run in my main project. I've created a toy project, and it works fine, however in a bigger project

test setup failed
file C:\file.py, line 4
  @pytest.mark.pony
  def test_something(ponydb):
E       fixture 'ponydb' not found
>       available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
>       use 'pytest --fixtures [testpath]' for help on them.

How can I debug this?

Elijas commented 5 years ago

Found issues with virtualenv, nevermind.