A disadvantage could be that the fixture code (of the depended fixture) will not be executed.
This means no preparation and cleanup steps are executed. From: pytest-dev [mailto:[email protected]] On Behalf Of Ronny Pfannschmidt Sent: Monday, January 8, 2018 14:36 To: Bruno Oliveira <[email protected]> Cc: Edgar Ostrowski <[email protected]>; pytest-dev <[email protected]> Subject: Re: [pytest-dev] Parametrizing dependent fixtures Hi, my understanding is, that the direct parametrization replaces the fixture lookup for the involved tests, which is not a planned "feature" per se, but still a neat tool to have -- Ronny 2018-01-08 14:07 GMT+01:00 Bruno Oliveira <[email protected]<mailto:[email protected]>>: Hi Edgar, On Mon, Jan 8, 2018 at 10:32 AM Edgar Ostrowski <[email protected]<mailto:[email protected]>> wrote: Anyway I would like to confirm that this is valid way of using the parametrize marker. I did not look at the video yet, but fixture parametrization only works by using @pytest.fixture(params=...). Markers don't do anything when applying to fixtures. Hope that clarifies things! Cheers, Bruno. _______________________________________________ pytest-dev mailing list [email protected]<mailto:[email protected]> https://mail.python.org/mailman/listinfo/pytest-dev -- Red Hat GmbH, http://www.de.redhat.com/, Registered seat: Grasbrunn, Commercial register: Amtsgericht Muenchen, HRB 153243, Managing Directors: Charles Cachera, Michael Cunningham, Michael O'Neill, Eric Shander Intel Deutschland GmbH Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany Tel: +49 89 99 8853-0, www.intel.de Managing Directors: Christin Eisenschmid, Christian Lamprechter Chairperson of the Supervisory Board: Nicole Lau Registered Office: Munich Commercial Register: Amtsgericht Muenchen HRB 186928
_______________________________________________ pytest-dev mailing list [email protected] https://mail.python.org/mailman/listinfo/pytest-dev
