Skip Navigation LinksHome Page > Forums > SpiraTest Forums > SpiraTest Issues & Questi... > pytest-spiratest - how to...
Here is part of my spira.cfg:
[test_cases] test_example = 1 TestClass.test_example = 2
The problem is ConfigParser set all capital letters to lowercase by default. Therefore It's not possible to obtain test case id of TestClass.test_example within pytest-spiratest, because config["test_case_ids"] contains lowercase testclass.test_example.
if test_name in config["test_case_ids"]: test_case_id = config["test_case_ids"][test_name] else: test_case_id = config["test_case_ids"]["default"]
Fixed by modifying pytest-spiratest package
And if you have any questions, please email or call us at +1 (202) 558-6885