Pedro Algarvio 9d8745162a We can't just change module attributes while testing. Use mock.patch. 4 роки тому
..
integration abed4a559a Merge pull request #58267 from s0undt3ch/hotfix/bad-tests-2 4 роки тому
unit 9d8745162a We can't just change module attributes while testing. Use mock.patch. 4 роки тому
README.md dbdbfbcb01 Better name for the pytest only directory 4 роки тому
__init__.py dbdbfbcb01 Better name for the pytest only directory 4 роки тому
conftest.py ea2729ebe8 Improve wording 4 роки тому

README.md

New Test Suite

Welcome to the new test suite for Salt!

Any test under this directory shall be written exploring the full capabilities of PyTest. That means, no occurrences of the TestCase class shall be used, neither our customizations to it.

Purpose

While PyTest can happily run unittest tests(withough taking advantage of most of PyTest's strengths), this new path in the tests directory was created to provide a clear separation between the two approaches to writing tests. Some(hopefully all) of the existing unittest tests might get ported to PyTest's style of writing tests, new tests should be added under this directory tree, and, in the long run, this directoy shall become the top level tests directoy.