MCPcopy Create free account
hub / github.com/pytest-dev/pytest / check_config_linelist

Method check_config_linelist

testing/test_config.py:733–739  ·  view source on GitHub ↗
(self, pytester: Pytester)

Source from the content-addressed store, hash-verified

731 self.check_config_linelist(pytester)
732
733 def check_config_linelist(self, pytester: Pytester) -> None:
734 config = pytester.parseconfig()
735 values = config.getini("xy")
736 assert len(values) == 2
737 assert values == ["123 345", "second line"]
738 values = config.getini("a2")
739 assert values == []
740
741 @pytest.mark.parametrize(
742 "str_val, bool_val", [("True", True), ("no", False), ("no-ini", True)]

Calls 2

parseconfigMethod · 0.45
getiniMethod · 0.45

Tested by

no test coverage detected