(self, pytester: Pytester)
| 127 | ) |
| 128 | |
| 129 | def test_funcarg_basic(self, pytester: Pytester) -> None: |
| 130 | pytester.copy_example() |
| 131 | item = pytester.getitem(Path("test_funcarg_basic.py")) |
| 132 | assert isinstance(item, Function) |
| 133 | # Execute's item's setup, which fills fixtures. |
| 134 | item.session._setupstate.setup(item) |
| 135 | del item.funcargs["request"] |
| 136 | assert len(get_public_names(item.funcargs)) == 2 |
| 137 | assert item.funcargs["some"] == "test_func" |
| 138 | assert item.funcargs["other"] == 42 |
| 139 | |
| 140 | def test_funcarg_lookup_modulelevel(self, pytester: Pytester) -> None: |
| 141 | pytester.copy_example() |
nothing calls this directly
no test coverage detected