pycharm运行Pytest,有没有将Pytest写入Python代码中的区别

初学pytest.

将pytest写进Python代码中

不同运行方式都可正常运行

 

 

 

 

 

=======================**********************=======================================

============================================================================

若是没有将pytest写进Python代码,直接运行的话将不能执行pytest:

没有将pytest写进Python代码,又想要执行Pytest,则需要选择py.test运行方式

 

posted @ 2018-07-06 10:23  yimu-yimu  阅读(321)  评论(0编辑  收藏  举报