ayon-core/tests/unit
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
..
igniter Merge fixes for tests from branch with Deadline tests. 2022-12-02 15:52:04 +01:00
openpype Chore: Event callbacks can have order (#6080) 2024-01-04 10:51:18 +01:00