We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e35dcc2 commit d15c8beCopy full SHA for d15c8be
pytest_cases/tests/fixtures/test_fixture_order_respects_scope.py
@@ -0,0 +1,25 @@
1
+"""
2
+This is a copy of test at https://github.com/pytest-dev/pytest/blob/master/testing/acceptance_test.py
3
4
+from distutils.version import LooseVersion
5
+
6
+import pytest
7
8
+data = {}
9
10
11
+@pytest.fixture(scope='module')
12
+def clean_data():
13
+ data.clear()
14
15
16
+@pytest.fixture(autouse=True)
17
+def add_data():
18
+ data.update(value=True)
19
20
21
+@pytest.mark.skipif(LooseVersion(pytest.__version__) < LooseVersion('3.4.0'),
22
+ reason="This bug was not fixed in old pytest.")
23
+@pytest.mark.usefixtures('clean_data')
24
+def test_value():
25
+ assert data.get('value')
0 commit comments