ayon-core/tests/unit/openpype
Jakub Trllo aa9dbf612e
Chore: Event callbacks can have order (#6080)
* EventCallback object have order

* callbacks are processed by the callback order

* safer approach to get function information

* modified docstring a little

* added tests for ordered calbacks

* fix python 2 support

* added support for partial methods

* removed unused '_get_func_info'

* formatting fix

* change test functions docstring

* added test for removement of source function when partial is used

* Allow order 'None'

* implemented 'weakref_partial'  to allow partial callbacks

* minor tweaks

* added support to pass additional arguments to 'wearkref_partial'

* modify docstring

* added 'weakref_partial' to tests

* move public method before prive methods

* added required order back but use '100' as default order

* fix typo

Co-authored-by: Roy Nieterau <roy_nieterau@hotmail.com>

---------

Co-authored-by: Roy Nieterau <roy_nieterau@hotmail.com>
2024-01-04 10:51:18 +01:00
..
hosts OP-6874 - remove trailing underscore in subset name (#5647) 2023-09-25 18:01:24 +02:00
lib Chore: Event callbacks can have order (#6080) 2024-01-04 10:51:18 +01:00
modules/sync_server Tests: fix unit tests (#5533) 2023-08-29 17:35:48 +02:00
pipeline hound suggestions 2023-10-09 16:13:25 +02:00
plugins/publish 🚚 move test file 2023-05-15 17:58:12 +02:00
conftest.py OP-3951 - updated value 2023-03-29 13:19:21 +02:00