Skip to content
Advertisement

Pytest missing 1 required positional argument with fixture

I’m using vscode as IDE

I have code a very simple usage of pytest fixture but it doesn’t working when basic example fixture found in the pytest documentation are working well :

JavaScript

I get in the test summary info :

JavaScript

Advertisement

Answer

pytest does not recognize setitem_getitem like test, so you should rename it to test_setitem_getitem and try it out:

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement