| 1 |
# mypy: allow-untyped-defs |
| 2 |
from __future__ import annotations |
| 3 |
|
| 4 |
import pytest |
| 5 |
|
| 6 |
|
| 7 |
@pytest.fixture |
| 8 |
def spam(): |
| 9 |
return "spam" |
| 10 |
|
| 11 |
|
| 12 |
class TestSpam: |
| 13 |
@pytest.fixture |
| 14 |
def spam(self, spam): |
| 15 |
return spam * 2 |
| 16 |
|
| 17 |
def test_spam(self, spam): |
| 18 |
assert spam == "spamspam" |