I have a list of variables which I have to assert to 0. now the code has to be a part of pytest framework & compatible with allure reporting. Since the assert I use declares only 1 test case is there anyway I check every assert as a diff scn?
list = [0,1,0,1,0,0,0]
for x in list:
assert x == 0
When I run the above code it passes off as 1 test case. Is there any other way rather than specifying each element, to have allure/pytest treat each assert as a diff test case?