Yoctol / strpipe

text preprocessing pipeline
Other
5 stars 0 forks source link

fix_bug: Fixtures are not meant to be called directly #72

Closed SoluMilken closed 5 years ago

SoluMilken commented 5 years ago
__________ ERROR collecting strpipe/tests/test_pipe.py ______________________________
strpipe/tests/test_pipe.py:61: in <module>
    def fake_pipe(fake_factory=fake_factory()):
E   _pytest.warning_types.RemovedInPytest4Warning: Fixture "fake_factory" called directly. Fixtures are not meant to be called directly, are created automatically when
 test functions request them as parameters. See https://docs.pytest.org/en/latest/fixture.html for more information.
SoluMilken commented 5 years ago

很怪的是 為啥之前跑 make test 時 都不會跑出這個bug ??? 我懷疑人生中

SoluMilken commented 5 years ago

pytest 11.24 更新惹 https://pypi.org/project/pytest/ 難怪...