I’m trying to make a vending machine using python. money_box accepts currencies that are allowed in the machine and change accepts money that aren’t allowed in the machine. Whenever I run a pytest on the file, whichever function that is in the bottom gets an assertion error (either def test_money_box() or def test_change(). Is this ..
tests_arr = [‘test1′,’test2’] logs_arr = [‘log1′,’log2′] def List_of_Tests(): tests = tests_arr return tests def List_of_Logs(): logs = logs_arr return logs @pytest.mark.parametrize("test, log", [ ([i for i in List_of_Tests()], [i for i in List_of_Logs()]) ] ) def methodname(test,log): print(test+ " " + log) When I try to pas the list items dynamically, I’m getting the below ..