testit-tms / adapters-python

Apache License 2.0
10 stars 11 forks source link

Возникает ошибка при использовании декоратора testit.workItemIds #106

Open itorayn opened 11 months ago

itorayn commented 11 months ago

Декораторы теста:

    @testit.displayName('Смена статуса регистрации при регистрации и разрегистрации')
    @testit.title('Смена статуса регистрации при регистрации и разрегистрации')
    @testit.description('Проверяется что при вызове методов registrate() и unregistrate() '
                        'отправляются соответствующие запросы "REGISTER", '
                        'а также меняется состояние регистрации при отправке запросов '
                        'и при получении ответов на них')
    @testit.workItemIds('89435')
    @pytest.mark.smoke
    def test_registration(self):
        ...

Лог:

DEBUG (2023-09-25 06:29:47,881): Method "get_work_item_ids" started with parameters: {'self': '<testit_python_commons.models.test_result.TestResult object at 0x7f8ee956a350>'}
06:29:47.881 TmsLogger DEBUG Method "get_work_item_ids" started with parameters: {'self': '<testit_python_commons.models.test_result.TestResult object at 0x7f8ee956a350>'}

DEBUG (2023-09-25 06:29:47,881): Method "get_work_item_ids" finished with result: ['89435']
06:29:47.881 TmsLogger DEBUG Method "get_work_item_ids" finished with result: ['89435']

ERROR (2023-09-25 06:29:47,881): Link with workItem "89435" status: Got an unexpected parameter 'work_item_id_model' to method `link_auto_test_to_work_item`
06:29:47.881 root ERROR Link with workItem "89435" status: Got an unexpected parameter 'work_item_id_model' to method `link_auto_test_to_work_item`

Версии: testit-adapter-pytest 2.3.0 testit-api-client 3.3.0 testit-python-commons 2.3.0

Test IT: Продукт: Test IT Enterprise
Версия: 4.2.1
Сборка: 4.2.1
Базовый образ: debian