Commit graph

91 commits

Author SHA1 Message Date
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
Jakub Jezek
5c6a7b6b25
hound suggestions 2023-10-09 16:13:25 +02:00
Jakub Jezek
9d6340a8a1
colorspace: addconvert_colorspace_enumerator_item
- improving unittests
- adding unittest for `convert_colorspace_enumerator_item`
- separating `config_items` from `get_colorspaces_enumerator_items` so they can be stored in context
2023-10-05 17:03:54 +02:00
Jakub Jezek
db029884b0
colorspace labeled unittests for display and view 2023-10-05 11:57:48 +02:00
Jakub Jezek
042d5d9d16
colorspace types in plural
also updating and fixing unit tests
2023-10-04 19:10:26 +02:00
Jakub Jezek
7782c333dc
renaming test file 2023-10-04 13:26:18 +02:00
Jakub Jezek
919540038f
unit testing of labeling 2023-10-04 13:24:41 +02:00
Petr Kalis
1bd07bd15b
OP-6874 - remove trailing underscore in subset name (#5647)
If {layer} placeholder is at the end of subset name template and not used (for example in auto_image where separating it by layer doesn't make any sense) trailing '_' was kept.
This updates cleaning logic and extracts it as it might be similar in regular `image` instance.
2023-09-25 18:01:24 +02:00
Jakub Jezek
aefbc7ef47
removing extra space 2023-09-21 17:24:36 +02:00
Jakub Jezek
b8e054a50c
renaming variable to make more sense 2023-09-21 17:01:07 +02:00
Jakub Jezek
c166b5898a
Merge branch 'develop' into enhancement/OP-4770_Global-colorspace-parse_colorspace_from_filepath-simplification 2023-09-21 16:58:11 +02:00
Jakub Ježek
aeef95f250
Merge branch 'develop' into enhancement/abstracting_colorspace_publishing_functions 2023-09-04 17:17:27 +02:00
Jakub Jezek
1f057525dd
testing: fixing zip file ID 2023-08-31 23:28:12 +02:00
Jakub Jezek
1e6f855e74
fixing tests 2023-08-31 11:46:48 +02:00
Jakub Jezek
abedafaff8
fixing name of variable in tests 2023-08-31 10:56:56 +02:00
Petr Kalis
04145020f6
Tests: fix unit tests (#5533)
* Changed test zip file location

* Updated tests and updated Unreal plugin

Unreal plugin was previously ejected into general one, which was later removed as unnecessary. In Unreal plugin were kept fixed bugs from general one (slate issue, better name pattern for clique)

* Updated raised exception type
2023-08-29 17:35:48 +02:00
Jakub Trllo
e56d3530cb
Chore: Queued event system (#5514)
* implemented queued event system

* implemented basic tests
2023-08-29 17:31:49 +02:00
Jakub Jezek
e10ca74b1b
changing signature of parse_colorspace_from_filepath 2023-08-28 14:00:52 +02:00
Jakub Jezek
338772d295
Merge branch 'develop' into enhancement/OP-4770_Global-colorspace-parse_colorspace_from_filepath-simplification 2023-08-28 12:22:00 +02:00
Jakub Jezek
edc260073b
updating testing package gdrive hash 2023-07-10 16:49:22 +02:00
Jakub Jezek
9c18402ac7
updating config version validation
- cashing python version validation so it is overwritable by tests
- implementing python compatibility override into tests
- adding tests for ocio v2 filerules
2023-07-10 16:42:52 +02:00
Petr Kalis
c83589b0c4 Merge maya_new_publisher 2023-06-26 12:32:34 +02:00
Jakub Jezek
711dd888e9
updating testing data 2023-06-01 12:37:39 +02:00
Jakub Ježek
2c31dc1f21
Merge branch 'develop' into feature/OP-5207_Global-host-color-management-activation 2023-05-24 10:25:24 +02:00
Ondřej Samohel
226b088871
Merge branch 'develop' into feature/OP-3933_RR-support 2023-05-16 13:57:04 +02:00
Ondrej Samohel
628ecbe5e2
🚚 move test file 2023-05-15 17:58:12 +02:00
Petr Kalis
ddb227bd95 Remove unfinished file 2023-05-10 17:25:13 +02:00
Jakub Jezek
602a4ae8ec
Merge branch 'develop' into feature/OP-5207_Global-host-color-management-activation 2023-05-02 20:56:58 +02:00
Jakub Jezek
aa2d683dd9
adding test routine for the slate condition 2023-04-20 21:49:58 +02:00
Jakub Ježek
864d1fc8e8
Merge branch 'develop' into feature/OP-5207_Global-host-color-management-activation 2023-04-17 12:30:53 +02:00
Jakub Jezek
6ae7b41533
fixing tests 2023-04-12 22:50:32 +02:00
Petr Kalis
80c50af2b9 OP-3951 - Hound 2023-03-30 13:45:37 +02:00
Petr Kalis
028d46597e Merge remote-tracking branch 'origin/bugfix/OP-3951_Deadline-checking-existing-frames-fails-when-there-is-number-in-file-name' into bugfix/OP-3951_Deadline-checking-existing-frames-fails-when-there-is-number-in-file-name 2023-03-30 13:43:11 +02:00
Petr Kalis
97d5b187e8 OP-3951 - updated logic
Doesn't make sense to validate sequence for single frame.
Updated tests accordingly. No sense in testing single frames so widely.
2023-03-30 13:42:30 +02:00
Petr Kalis
53d395e708
OP-3951 - updated value
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
2023-03-29 13:19:21 +02:00
Petr Kalis
0a642d475c
OP-3951 - changed debug value
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
2023-03-29 13:19:02 +02:00
Petr Kalis
e2546e5547
OP-3951 - removed unnecessary key
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
2023-03-29 13:18:37 +02:00
Petr Kalis
36328f8b1a
OP-3951 - removed unnecessary key
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
2023-03-29 13:18:07 +02:00
Petr Kalis
93d98c3f9c OP-3951 - use ext on representation
Without it ass.gz files won't work
2023-03-27 16:55:19 +02:00
Petr Kalis
94ceba790e OP-3951 - updated tests 2023-03-24 16:49:43 +01:00
Petr Kalis
f95007b660 OP-3951 - Hound 2023-03-24 11:15:27 +01:00
Petr Kalis
0648271ec7 OP-3951 - added tests for validate_sequence_frames
Introduced conftest with dummy environment for basic tests
2023-03-23 18:15:11 +01:00
Roy Nieterau
ee7e2f1bcd Update tests and documentation for ExtractorColormanaged refactor to ColormanagedPyblishPluginMixin 2023-03-13 23:00:03 +01:00
Jakub Jezek
3d4d63bd08
flake8 fixes 2023-01-17 14:47:54 +01:00
Jakub Jezek
29d51b0209
testing: updating test data to colorspace 2023-01-13 13:19:53 +01:00
Jakub Jezek
54f04dd7de
testing: refactor set_representation_colorspace to address new inputs 2023-01-11 17:32:11 +01:00
Jakub Jezek
e13a99782f
testing: updating to new gdrive data 2023-01-05 17:20:09 +01:00
Jakub Jezek
f2a9169ffd
testing: publish plugins finalisation 2023-01-05 17:16:42 +01:00
Jakub Jezek
70b2df5fff
testing: adding publish plugins tests 2023-01-04 21:32:59 +01:00
Jakub Jezek
a429352964
testing: abstracting legacy_io fixture to lib for other pipeline tests 2023-01-04 21:32:40 +01:00