salt/tests/pytests
Nicholas Hughes a210dbc25f
Add file pruned state (#62179)
* add file.rmdir tests for original function

* update file.rmdir exec module for recursive operation and verbose output

* fixes saltstack/salt#62178 add file.rmdir state

* add older_than capability to file.rmdir exec and state modules

* change test to use direct import of file module

* Revert "change test to use direct import of file module"

This reverts commit ff8c666e3b.

* revert previous test modification and add import to win_file

* rename file.rmdir state to file.pruned
2022-08-03 07:16:22 -06:00
..
functional Add file pruned state (#62179) 2022-08-03 07:16:22 -06:00
integration Update to isort 5.10.1 2022-08-01 12:49:16 -06:00
scenarios Update to isort 5.10.1 2022-08-01 12:49:16 -06:00
unit Add file pruned state (#62179) 2022-08-03 07:16:22 -06:00
__init__.py Pyupgrade and drop six 2021-07-06 09:04:28 -04:00
conftest.py Update to isort 5.10.1 2022-08-01 12:49:16 -06:00
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.