testing/example_scripts/unittest/test_parametrized_fixture_error_message.py
raw| 1 | # mypy: allow-untyped-defs |
| 2 | from __future__ import annotations |
| 3 | |
| 4 | import unittest |
| 5 | |
| 6 | import pytest |
| 7 | |
| 8 | |
| 9 | @pytest.fixture(params=[1, 2]) |
| 10 | def two(request): |
| 11 | return request.param |
| 12 | |
| 13 | |
| 14 | @pytest.mark.usefixtures("two") |
| 15 | class TestSomethingElse(unittest.TestCase): |
| 16 | def test_two(self): |
| 17 | pass |