I am currently using the pytest-dependency plugin for pytest to define test dependencies.
I am having trouble understanding how to pass values to a dependent tests. Below is an example of what I'd like to do. I'd like to use the job produced in test_one in the test_two function.
def test_one(fake_fixture):
job = create_job()
assert job.status == "COMPLETE"
@pytest.mark.dependeny(depends=["test_one"])
def test_two(fake_fixture):
response = download_report(job)
assert file.status_code == 200