(self, pytester: Pytester)
| 713 | |
| 714 | class TestRequestBasic: |
| 715 | def test_request_attributes(self, pytester: Pytester) -> None: |
| 716 | item = pytester.getitem( |
| 717 | """ |
| 718 | import pytest |
| 719 | |
| 720 | @pytest.fixture |
| 721 | def something(request): pass |
| 722 | def test_func(something): pass |
| 723 | """ |
| 724 | ) |
| 725 | assert isinstance(item, Function) |
| 726 | req = TopRequest(item, _ispytest=True) |
| 727 | assert req.function == item.obj |
| 728 | assert req.keywords == item.keywords |
| 729 | assert hasattr(req.module, "test_func") |
| 730 | assert req.cls is None |
| 731 | assert req.function.__name__ == "test_func" |
| 732 | assert req.config == item.config |
| 733 | assert repr(req).find(req.function.__name__) != -1 |
| 734 | |
| 735 | def test_request_attributes_method(self, pytester: Pytester) -> None: |
| 736 | (item,) = pytester.getitems( |
nothing calls this directly
no test coverage detected