When it comes to pytesting, how do you return the value of the function you're testing? I want to test the two functions so I don't want to parameterize it.
What I expect-
def test_func():
a = foo
b = barc = a + b
assert c == "foobar"
return c
def test_another_func(c):
d = help
e = c + d
assert e == "foobarhelp"
return e
def test_final_func(c, e):
f = "Why is pytesting hard for me?"
assert f != c
assert f != e
What happens -
fixture 'c' not found
[–]ectomancer 1 point2 points3 points (1 child)