From 4b1707ff7041256381b95b5647ee6cc8336b54d2 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 27 Jan 2022 11:57:34 +0000 Subject: [PATCH] [7.0.x] Autouse linearization graph (#9557) Co-authored-by: Bruno Oliveira --- .../test_fixtures_order_autouse_flat.svg | 56 +++++++++++++++++++ doc/en/reference/fixtures.rst | 3 + 2 files changed, 59 insertions(+) create mode 100644 doc/en/example/fixtures/test_fixtures_order_autouse_flat.svg diff --git a/doc/en/example/fixtures/test_fixtures_order_autouse_flat.svg b/doc/en/example/fixtures/test_fixtures_order_autouse_flat.svg new file mode 100644 index 00000000000..03c4598272a --- /dev/null +++ b/doc/en/example/fixtures/test_fixtures_order_autouse_flat.svg @@ -0,0 +1,56 @@ + + + + + order + + a + + b + + c + + autouse + + d + + e + + f + + g + + test_order + diff --git a/doc/en/reference/fixtures.rst b/doc/en/reference/fixtures.rst index da2c5e009c3..d25979ab95d 100644 --- a/doc/en/reference/fixtures.rst +++ b/doc/en/reference/fixtures.rst @@ -401,6 +401,9 @@ the graph would look like this: Because ``c`` can now be put above ``d`` in the graph, pytest can once again linearize the graph to this: +.. image:: /example/fixtures/test_fixtures_order_autouse_flat.* + :align: center + In this example, ``c`` makes ``b`` and ``a`` effectively autouse fixtures as well.