ynput / LabLib

Create VFX Dailies with Python! Can be used to render directly or as a module extending other code.
MIT License
2 stars 2 forks source link

Unit Tests for Reposition Operators and Processors #5

Closed tweak-wtf closed 5 months ago

tweak-wtf commented 5 months ago

adds tests for reposition effect

jakubjezek001 commented 5 months ago

The code seems to be ok and we can probably merge it. I can rewrite the reposition tests into the class based workflow afterwards. I wonder if we could add __get_reposition_operators method as fixture - but it is beyond my knowledge at the moment.

tweak-wtf commented 5 months ago

was using fixtures before actually. issue was that i wanted to have a test case always test 1 instance of an operator in this case. for Mirror2 i was running into the issue that i wanted to yield a single object from a list which was failing. there are 2 Mirror effects in the used sample file. then pivoted over to use parametrize again.

also this enabled me to check for different assertions in the same test when passing in an index for the used test parameters