Pedro Algarvio
|
93f2ea2141
Reuse code instead of duplicating it
|
4 years ago |
Pedro Algarvio
|
d4da9f5260
Implement the `requires_salt_states` marker
|
4 years ago |
Pedro Algarvio
|
47e58b833e
Handle race condition when reaping astray processes
|
4 years ago |
Pedro Algarvio
|
177cdaee5f
Actually, make it a NullHandler
|
4 years ago |
Pedro Algarvio
|
70bf87172f
Reset PyTest's `catch_log_handler` after test since pyTest doesn't do it.
|
4 years ago |
Pedro Algarvio
|
d6b9c4cfe6
Temporarily skip tests which were simply ignored before pytest
|
4 years ago |
Pedro Algarvio
|
794cb3081e
Only hack non `function` scoped fixtures
|
4 years ago |
Pedro Algarvio
|
87eee568bc
For `unitest.TestClass` subclasses we need to use `pytest_runtest_protocol` instead
|
4 years ago |
Pedro Algarvio
|
e84606e97d
Hack PyTest's fixture finalization timing
|
4 years ago |
Pedro Algarvio
|
ee91888f7e
Move windows test white listing to pytest markers
|
5 years ago |
Pedro Algarvio
|
7e0011fbd2
Replace `@requires_salt_modules` with `@pytest.mark.requires_salt_modules`
|
5 years ago |
Pedro Algarvio
|
7e4b61aa17
Replace `@expensiveTest` with `@pytest.mark.expensive_test`
|
5 years ago |
Pedro Algarvio
|
9d86af6e37
Replace `@destructiveTest` with `@pytest.mark.destructive_test`
|
5 years ago |
Pedro Algarvio
|
3e485d98b5
Move static `norecursedirs` to `pytest.ini`
|
4 years ago |
Pedro Algarvio
|
35646c5ed9
Fix PyLint `broad-except`
|
4 years ago |
Pedro Algarvio
|
44fbc4004a
Tell PyTest tests were skipped by a mark
|
5 years ago |
Pedro Algarvio
|
c4712e3b78
Add some pylint disables
|
5 years ago |
Pedro Algarvio
|
7de939f6b2
All salt imports should be done at the global module level
|
5 years ago |
Pedro Algarvio
|
b539b561e0
The `skip_if_not_root` pytest marker is now windows compatible
|
5 years ago |
Pedro Algarvio
|
64a3739d00
Use `salt.serializers.yaml.deserialize()` to avoid deprecation warnings
|
5 years ago |
Pedro Algarvio
|
1c5d39ed31
Fix virtualenv binary discovery for windows
|
5 years ago |
Pedro Algarvio
|
96cac845d9
Apply the same config settings under PyTest as in bdf24f4064
|
5 years ago |
Pedro Algarvio
|
3f60d83694
Implement `requires_salt_modules` as a pytest marker
|
5 years ago |
Pedro Algarvio
|
85e387d13b
Switch to `sminion` support code
|
5 years ago |
Pedro Algarvio
|
ae304b539a
Actually cache the grains
|
5 years ago |
Pedro Algarvio
|
fd51465445
Assert that any temp states or pillar is not left behind
|
5 years ago |
Pedro Algarvio
|
c5e0a19116
Refactor helper to allow handling non state temp files
|
5 years ago |
Pedro Algarvio
|
98ab80446e
Add a pytest helper to create a temporary state file
|
5 years ago |
Pedro Algarvio
|
56f016b52f
This is a custom fixture
|
5 years ago |
Pedro Algarvio
|
602d722e91
Future proof the code
|
5 years ago |