Ho uno script di test molto semplice solo per imparare pytest, tmp.py:PyCharm argomento pytestrunner PluginManager parola chiave inaspettato
def square(x):
return x*x
def test_square():
assert square(4) == 16
Utilizzando PyCharm per eseguire questo script, ho configurato il mio progetto in modo tale che l'impostazione è pytest usato come mio test runner di default. Quando eseguo il codice di cui sopra ottengo il seguente errore:
/Users/mingxiao/webdav_2.7.5/bin/python /Applications/PyCharm.app/helpers/pycharm/pytestrunner.py -p pytest_teamcity /Users/mingxiao/dev/juggernaut/src/integrations/webDAV/demo/tmp.py "-k test_square"
Testing started at 4:41 PM ...
Traceback (most recent call last):
File "/Applications/PyCharm.app/helpers/pycharm/pytestrunner.py", line 51, in <module>
main()
File "/Applications/PyCharm.app/helpers/pycharm/pytestrunner.py", line 20, in main
_pluginmanager = PluginManager(load=True)
TypeError: __init__() got an unexpected keyword argument 'load'
Process finished with exit code 1
Sono in esecuzione PyCharm 3.0 Professional edition, pytest 2.4.2, 2.7.5 e pitone. Sembra che la stessa PyCharm stia causando il problema.
E 'PyCharm senza * s * alla fine. –