google / mobly

E2E test framework for tests with complex environment requirements.
https://github.com/google/mobly
Apache License 2.0
647 stars 179 forks source link

Fix pytest init warnings. #521

Closed winterfroststrom closed 6 years ago

winterfroststrom commented 6 years ago

Fixes #519

So, I believe the init warning is because pytest is trying to find the test clases or something for some reason. I think it looks for Test* stuff by default, but since we're a test framework, there really isn't a good way to separate our unit tests from out actual test framework. So, just setting what pytest looks for seems suppress the warning for me on both python 2 and 3.

See https://docs.pytest.org/en/latest/reference.html#confval-python_classes


This change is Reviewable