コード例 #1
0
ファイル: test_conftesthandle.py プロジェクト: enyst/plexnet
 def test_onimport(self, basedir):
     l = []
     conftest = Conftest(onimport=l.append)
     conftest.setinitial([basedir.join("adir")])
     assert len(l) == 2 # default + the one 
     assert conftest.rget("a") == 1
     assert conftest.rget("b", basedir.join("adir", "b")) == 2
     assert len(l) == 3
コード例 #2
0
 def test_onimport(self, basedir):
     l = []
     conftest = Conftest(onimport=l.append)
     conftest.setinitial([basedir.join("adir")])
     assert len(l) == 2  # default + the one
     assert conftest.rget("a") == 1
     assert conftest.rget("b", basedir.join("adir", "b")) == 2
     assert len(l) == 3
コード例 #3
0
ファイル: test_conftesthandle.py プロジェクト: enyst/plexnet
 def test_basic_init(self, basedir):
     conftest = Conftest()
     conftest.setinitial([basedir.join("adir")])
     assert conftest.rget("a") == 1
コード例 #4
0
 def test_basic_init(self, basedir):
     conftest = Conftest()
     conftest.setinitial([basedir.join("adir")])
     assert conftest.rget("a") == 1