pytestrunner PluginManager beklenmedik anahtar kelime argüman sadece pytest, tmp.py öğrenmek için: Bu komut dosyasını çalıştırmak için pycharm kullanmapycharm Ben çok basit bir test senaryosu var
def square(x):
return x*x
def test_square():
assert square(4) == 16
, ben pytest olacak şekilde ayarlanması projemi yapılandırılmış ettik Benim varsayılan test koşucu olarak kullanılır. Ben pycharm 3.0 Professional sürümünü çalıştırıyorum
/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
, pytest 2.4.2 ve piton 2.7.5: Yukarıdaki kodu çalıştırdığınızda aşağıdaki hatayı alıyorum. PyCharm'ın, soruna neden olduğu görünüyor.
çalışmalıdır. PyCharms düzelttim değilse –