Ejemplo n.º 1
0
 def test_getpath(self, tmpdir, newconfig):
     config = newconfig("""
         [section]
         path1={HELLO}
     """)
     reader = IniReader(config._cfg)
     reader.addsubstitions(toxinidir=tmpdir, HELLO="mypath")
     x = reader.getpath("section", "path1", tmpdir)
     assert x == tmpdir.join("mypath")
Ejemplo n.º 2
0
 def test_getpath(self, tmpdir, newconfig):
     config = newconfig("""
         [section]
         path1={HELLO}
     """)
     reader = IniReader(config._cfg)
     reader.addsubstitions(toxinidir=tmpdir, HELLO="mypath")
     x = reader.getpath("section", "path1", tmpdir)
     assert x == tmpdir.join("mypath")