Getting empty test suite when running with pytest from pycharm
The name of your test file does not conform to a default pytest discovery rules. If you change x_tests.py to x_test.py it run the test and fails as expected. Take a look at this page for more info on pytest discovery rules.
In my case, test class contains init method, cause empty suite as well. What you need to do is to avoid to write init method.