py.test: error: unrecognized arguments: --cov=ner_brands --cov-report=term-missing --cov-config

后端 未结 6 2156
囚心锁ツ
囚心锁ツ 2021-02-06 20:20

when I am trying to run my test through command line

py.test  file_name.py

I got this error:

py.test: error: unrecognized argum         


        
6条回答
  •  清酒与你
    2021-02-06 20:58

    Turns out my versions mismatched.

    I changed the versions to

    pytest="*"
    pytest-cov="*"
    

    and it started to work.

提交回复
热议问题