Trouble using matchtask in pytest #1499
-
Hi everyone, This is irritating as the project itself has a bunch of tests using Rules which implement matchtask() and i kind of copied the implementations e.g. TestTaskHasName.py. This is my custom rule
The python test for the rule
I am not sure if it is necessary to wrap the tests into a Unitest class. It looks to me that it also works without. Of course the test playbook
To me it seems that everything is setup up correctly. The rule itself works when using I took a small dive into the code to understand whether i have to user matchtask() or matchtasks() - plural - because matchtasks produces a List[MessageError] while the other only create a bool. Can anyone help me with the concept? Edit: Output of the pytest run
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Edit: I just mismatched chmod and chown. Silly me. |
Beta Was this translation helpful? Give feedback.
Edit: I just mismatched chmod and chown. Silly me.