Bug 49413 - Ошибка тестов с @params
Summary: Ошибка тестов с @params
Status: CLOSED NOTABUG
Alias: None
Product: Sisyphus
Classification: Development
Component: python3-module-nose2 (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Grigory Ustinov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-14 13:26 MSK by Ajrat Makhmutov
Modified: 2024-02-14 21:25 MSK (History)
19 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ajrat Makhmutov 2024-02-14 13:26:02 MSK
https://docs.nose2.io/en/latest/params.html
При попытке запустить пример параметризованного теста выходит ошибка:
python3 -m unittest -v tmp.py
test_less_than (tmp.Test) ... ERROR

======================================================================
ERROR: test_less_than (tmp.Test)
----------------------------------------------------------------------
TypeError: test_less_than() missing 2 required positional arguments: 'a' and 'b'

----------------------------------------------------------------------
Ran 1 test in 0.000s