Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

[1LP][RFR] Use resolve_fixture_function in provider fixture setup #10121

Merged
merged 1 commit into from
May 28, 2020
Merged

[1LP][RFR] Use resolve_fixture_function in provider fixture setup #10121

merged 1 commit into from
May 28, 2020

Conversation

tpapaioa
Copy link
Contributor

@tpapaioa tpapaioa commented May 15, 2020

Updated the pytest_fixture_setup hook for the provider fixture, to look more like pytest's hook. See pytest-dev/pytest@c9a0881 for the relevant pytest commit that introduced resolve_fixture_function(), which I've updated our hook to use as well.

Also, the iteration over the test's markers in this hook only needed the fixture_name key, and not the associated mark value, so I've removed the call to items().

{{ pytest: -vvv --long-running --use-provider vsphere67-nested cfme/tests/cloud_infra_common/test_retirement.py }}

@tpapaioa

This comment has been minimized.

@tpapaioa tpapaioa changed the title [WIP] Use resolve_fixture_function in provider fixture setup [WIPTEST] Use resolve_fixture_function in provider fixture setup May 15, 2020
@tpapaioa tpapaioa changed the title [WIPTEST] Use resolve_fixture_function in provider fixture setup [RFR] Use resolve_fixture_function in provider fixture setup May 15, 2020
@dajoRH dajoRH removed the WIP label May 15, 2020
@john-dupuy john-dupuy changed the title [RFR] Use resolve_fixture_function in provider fixture setup [1LP][RFR] Use resolve_fixture_function in provider fixture setup May 19, 2020
@mshriver
Copy link
Member

Holding on merging this until after 17.75.0 is tagged for release

@mshriver mshriver self-assigned this May 21, 2020
@mshriver mshriver changed the title [1LP][RFR] Use resolve_fixture_function in provider fixture setup [1LP][RFR][NOMERGE] Use resolve_fixture_function in provider fixture setup May 21, 2020
@mshriver mshriver changed the title [1LP][RFR][NOMERGE] Use resolve_fixture_function in provider fixture setup [1LP][RFR] Use resolve_fixture_function in provider fixture setup May 28, 2020
@mshriver mshriver merged commit 7f571fd into ManageIQ:master May 28, 2020
@tpapaioa tpapaioa deleted the provider_fixture_setup branch May 28, 2020 12:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants