This commit is contained in:
feuillemorte 2018-02-27 19:16:45 +03:00
parent eadd15fe45
commit 409b919fc0
1 changed files with 7 additions and 0 deletions

View File

@ -110,6 +110,13 @@ class TestConfigCmdlineParsing(object):
config = testdir.parseconfig("-c", "custom.cfg") config = testdir.parseconfig("-c", "custom.cfg")
assert config.getini("custom") == "1" assert config.getini("custom") == "1"
testdir.makefile(".cfg", custom_tool_pytest_section="""
[tool:pytest]
custom = 1
""")
config = testdir.parseconfig("-c", "custom_tool_pytest_section.cfg")
assert config.getini("custom") == "1"
def test_absolute_win32_path(self, testdir): def test_absolute_win32_path(self, testdir):
temp_cfg_file = testdir.makefile(".cfg", custom=""" temp_cfg_file = testdir.makefile(".cfg", custom="""
[pytest] [pytest]