patchback[bot]
605a557a8d
[PR #8894/8ef77d86 backport][stable-9] unit test helper: big revamp ( #8943 )
...
unit test helper: big revamp (#8894 )
* initial commit
* multiple changes:
- TestCaseContext fixture no longer need to autouse=True
- Helper.from_module() allows extra param to specify yaml file
- test_django_check: adjusted .py and .yaml
* set fixtures per testcase
* set fixtures per testcase
* rollback to original state
* patch_ansible_module fixture
- now it works not only in parametrized functions but also directly with args
* tests/unit/plugins/modules/helper.py
- improved encapsulation, class Helper no longer knows details about test cases
- test functions no longer parametrized, that allows using test case fixtures per test function
- renamed 'context' to 'mock'
* enable Helper.from_list(), better param name 'ansible_module'
* adjusted test fiels to new helper
* remove unnecessary .license file
* fix bracket
* fix reference name
* Update tests/unit/plugins/modules/helper.py
Co-authored-by: Felix Fontein <felix@fontein.de >
* revert to parametrized test func instead of multiple funcs
---------
Co-authored-by: Felix Fontein <felix@fontein.de >
(cherry picked from commit 8ef77d8664 )
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com >
2024-09-28 08:33:00 +03:00
..
2023-03-09 20:09:13 +01:00
2024-09-28 08:33:00 +03:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2024-02-25 19:44:49 +01:00
2024-09-28 08:33:00 +03:00
2023-02-12 21:05:08 +01:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2024-07-27 09:57:35 +02:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2024-09-28 08:33:00 +03:00
2024-09-28 08:33:00 +03:00
2024-09-01 20:55:10 +02:00
2023-03-04 20:51:50 +01:00
2023-02-12 21:05:08 +01:00
2024-09-28 08:33:00 +03:00
2024-09-28 08:33:00 +03:00
2024-09-28 08:33:00 +03:00
2024-09-28 08:33:00 +03:00
2024-09-28 08:33:00 +03:00
2024-09-28 08:33:00 +03:00
2023-12-29 09:42:02 +01:00
2023-10-29 18:04:44 +01:00
2023-10-04 23:23:11 +02:00
2024-09-28 08:33:00 +03:00
2024-09-28 08:33:00 +03:00
2024-09-28 08:33:00 +03:00
2024-09-28 08:33:00 +03:00
2024-09-28 08:33:00 +03:00
2024-09-28 08:33:00 +03:00
2023-10-29 18:04:44 +01:00
2024-09-28 08:33:00 +03:00
2024-09-28 08:33:00 +03:00
2023-02-12 21:05:08 +01:00
2022-11-02 20:42:29 +00:00
2024-02-25 19:44:49 +01:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2024-02-25 19:44:49 +01:00
2022-11-02 20:42:29 +00:00
2023-02-12 21:05:08 +01:00
2023-03-25 08:23:20 +01:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2024-05-11 16:52:43 +02:00
2022-11-02 20:42:29 +00:00
2023-09-17 13:22:22 +02:00
2022-11-02 20:42:29 +00:00
2024-01-16 22:14:26 +01:00
2023-12-31 15:21:59 +01:00
2023-05-09 19:48:29 +02:00
2022-11-02 20:42:29 +00:00
2023-10-04 23:23:11 +02:00
2023-09-10 21:28:55 +02:00
2022-11-02 20:42:29 +00:00
2023-06-20 19:18:26 +02:00
2023-02-12 21:05:08 +01:00
2023-06-18 19:49:00 +02:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2024-08-12 08:07:10 +02:00
2023-02-12 21:05:08 +01:00
2024-08-01 17:33:43 +02:00
2024-09-08 14:45:47 +02:00
2023-02-12 21:05:08 +01:00
2023-06-15 06:57:30 +02:00
2024-08-12 08:06:13 +02:00
2023-08-11 09:00:54 +02:00
2024-09-09 14:06:42 +02:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2023-06-19 13:11:03 +02:00
2022-11-02 20:42:29 +00:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2022-11-02 20:42:29 +00:00
2023-10-29 18:04:44 +01:00
2022-11-02 20:42:29 +00:00
2023-11-22 09:11:40 +01:00
2023-12-03 13:51:39 +01:00
2023-08-12 09:57:49 +02:00
2023-02-12 21:05:08 +01:00
2023-01-22 17:10:36 +01:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2024-09-28 08:33:00 +03:00
2024-09-28 08:33:00 +03:00
2022-11-02 20:42:29 +00:00
2023-02-12 21:05:08 +01:00
2023-10-04 23:23:11 +02:00
2022-11-02 20:42:29 +00:00
2023-10-29 18:04:44 +01:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2023-10-04 23:23:11 +02:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2023-07-23 21:31:57 +02:00
2023-07-02 21:48:26 +02:00
2023-12-31 15:21:20 +01:00
2023-07-02 21:48:26 +02:00
2023-07-02 21:48:26 +02:00
2023-12-04 05:59:21 +01:00
2024-09-28 08:33:00 +03:00
2024-09-28 08:33:00 +03:00
2023-11-30 05:58:07 +01:00
2023-02-12 21:05:08 +01:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2024-07-23 22:03:13 +02:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2023-06-11 08:34:25 +00:00
2023-10-29 18:04:44 +01:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2023-10-03 06:37:46 +02:00
2023-10-04 23:23:11 +02:00
2024-09-28 08:33:00 +03:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2023-02-12 21:05:08 +01:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00
2024-03-18 21:35:36 +01:00
2024-07-08 22:25:30 +02:00
2022-11-02 20:42:29 +00:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2023-02-12 21:05:08 +01:00
2024-09-28 08:33:00 +03:00
2024-09-28 08:33:00 +03:00
2024-09-28 08:33:00 +03:00
2024-09-28 08:33:00 +03:00
2022-08-08 14:24:58 +02:00
2022-11-02 20:42:29 +00:00
2022-11-02 20:42:29 +00:00