Disable Pytest in PyCharm

You can either create a run configuration for that specific file, under Run/Edit Configurations, or you can change the test discovery settings for py.test, so files starting with test_* are not considered test files by default.

More information here:

http://pytest.org/2.2.4/example/pythoncollection.html


Disable Pytest for you project

  1. Open the Settings/Preferences | Tools | Python Integrated Tools settings dialog as described in Choosing Your Testing Framework.
  2. In the Default test runner field select Unittests.
  3. Click OK to save the settings.

enter image description here