(self, pytester: Pytester)
| 784 | assert values == ["123", "456"] |
| 785 | |
| 786 | def test_addinivalue_line_new(self, pytester: Pytester) -> None: |
| 787 | pytester.makeconftest( |
| 788 | """ |
| 789 | def pytest_addoption(parser): |
| 790 | parser.addini("xy", "", type="linelist") |
| 791 | """ |
| 792 | ) |
| 793 | config = pytester.parseconfig() |
| 794 | assert not config.getini("xy") |
| 795 | config.addinivalue_line("xy", "456") |
| 796 | values = config.getini("xy") |
| 797 | assert len(values) == 1 |
| 798 | assert values == ["456"] |
| 799 | config.addinivalue_line("xy", "123") |
| 800 | values = config.getini("xy") |
| 801 | assert len(values) == 2 |
| 802 | assert values == ["456", "123"] |
| 803 | |
| 804 | def test_confcutdir_check_isdir(self, pytester: Pytester) -> None: |
| 805 | """Give an error if --confcutdir is not a valid directory (#2078)""" |
nothing calls this directly
no test coverage detected