(self, pytester: Pytester)
| 1090 | assert values == ["123", "456"] |
| 1091 | |
| 1092 | def test_addinivalue_line_new(self, pytester: Pytester) -> None: |
| 1093 | pytester.makeconftest( |
| 1094 | """ |
| 1095 | def pytest_addoption(parser): |
| 1096 | parser.addini("xy", "", type="linelist") |
| 1097 | """ |
| 1098 | ) |
| 1099 | config = pytester.parseconfig() |
| 1100 | assert not config.getini("xy") |
| 1101 | config.addinivalue_line("xy", "456") |
| 1102 | values = config.getini("xy") |
| 1103 | assert len(values) == 1 |
| 1104 | assert values == ["456"] |
| 1105 | config.addinivalue_line("xy", "123") |
| 1106 | values = config.getini("xy") |
| 1107 | assert len(values) == 2 |
| 1108 | assert values == ["456", "123"] |
| 1109 | |
| 1110 | def test_addini_default_values(self, pytester: Pytester) -> None: |
| 1111 | """Tests the default values for configuration based on |
nothing calls this directly
no test coverage detected