using fixture return value as value in mark.parametrize()
问题 my question is - is it possible to use return value from fixture as a value in parametrize? The problem is - I'd like to dynamically get possible values (for example, available systems on a virtual server) for parametrize. I can access these when a virtual server is created by one of the fixtures. Tests look like this (pseudo-code-ish): [conftest.py] @pytest_fixture(scope='session') def test_server(request): test_server = Server([default_params]) test_server.add() def fin(): test_server