ayon-core/tests/unit/openpype/lib
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
..
test_delivery.py Tests: fix unit tests (#5533) 2023-08-29 17:35:48 +02:00
test_event_system.py Chore: Event callbacks can have order (#6080) 2024-01-04 10:51:18 +01:00
test_user_settings.py #1784 - location of existing unittests refactored for futuru use 2021-07-07 18:50:53 +02:00