Back

Test Passed, but no output for Functions

Created 1 year ago
58 Views
1 Comments
PritixxhkIX
@PritixxhkIX
PritixxhkIX
@PritixxhkIXProfile is locked. Login

I defined and called an exact function as in the lecture video with only change in print and function name. Not getting why it is not giving the output, despite being passed and no print statement is executing

2nd, there is one: 1usage shown over line 1, which on click is displaying the below. Not sure, why it is for?

3rd, when I am passing 2 simple parameters: a,b and printing them to a function, while passing the arguments, code is not at all executing and throwing error:

TestFunctions.py::testfunc ERROR [100%]

test setup failed

file C:\PRITI\Trainings\Python\Python Practice\TestFunctions.py, line 1

def testfunc(a,b):

E fixture 'a' not found

> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory

> use 'pytest --fixtures [testpath]' for help on them.

C:\PRITI\Trainings\Python\Python Practice\TestFunctions.py:1

Comments
Please login to comment.