update related ids
This commit is contained in:
@@ -79,9 +79,16 @@ def test_enroll(
|
||||
)
|
||||
+ SortKey('0')
|
||||
+ SortKey('parent_vacancy', path_spec='vacancy')
|
||||
+ SortKey('related_ids#order', path_spec='order_id'),
|
||||
+ SortKey('related_ids#order', path_spec='order_id')
|
||||
+ SortKey('related_ids#user', path_spec='user_id'),
|
||||
)
|
||||
|
||||
assert enrollment['metadata__related_ids'] == {
|
||||
'USER#9a41e867-55e1-4573-bd27-7b5d1d1bcfde',
|
||||
'ORG#cJtK9SsnJhKPyxESe7g3DG',
|
||||
'ORDER#3CNrFB9dy2RLit2pdeUWy4',
|
||||
}
|
||||
|
||||
assert succ['output']['id'] == '8c9b55ef-e988-43ee-b2da-8594850605d7'
|
||||
assert enrollment['related_ids#order'] == '3CNrFB9dy2RLit2pdeUWy4'
|
||||
assert enrollment['parent_vacancy'] == {
|
||||
|
||||
Reference in New Issue
Block a user