Ejemplo n.º 1
0
 def test_value_access_with_confmod(self, basedir):
     topdir = basedir.join("adir", "b")
     topdir.ensure("xx", dir=True)
     conftest = Conftest(topdir)
     mod, value = conftest.rget_with_confmod("a", topdir)
     assert  value == 1.5
     path = py.path.local(mod.__file__)
     assert path.dirpath() == basedir.join("adir", "b")
     assert path.purebasename == "conftest"
Ejemplo n.º 2
0
 def test_value_access_with_confmod(self, basedir):
     topdir = basedir.join("adir", "b")
     topdir.ensure("xx", dir=True)
     conftest = Conftest(topdir)
     mod, value = conftest.rget_with_confmod("a", topdir)
     assert value == 1.5
     path = py.path.local(mod.__file__)
     assert path.dirpath() == basedir.join("adir", "b")
     assert path.purebasename == "conftest"