I would like to customize the output name of my pytest to include the name of my fixtures
So I have
def test_t1(
when_creating_a_project_from_a_sales_handoff,
with_a_new_customer,
and_no_conflicting_data_exists,
create_project):
it_will_create_a_customer_with_the_releavant_information()
it_will_create_a_project_that_references_the_newly_created_customer()
and I'd like the displayed test name to be some version of
when_creating_a_project_from_a_sales_handoff
with_a_new_customer
and_no_conflicting_data_exists
create_project
How can I do this? I tried creating
@fixture
def namer(request):
request.node.name = 'test_foo'
but no dice, it didn't change the test display name