Exemple #1
0
 def test_listing_without_apps(self):
     self.make_conf_file('foo.yaml')
     mmp = MultiMapProxy(self.loader)
     resp = mmp.index_list(DummyReq())
     assert 'foo' not in resp.response
     assert mmp.proj_app('foo') is not None
Exemple #2
0
 def test_listing_with_apps(self):
     self.make_conf_file('foo.yaml')
     mmp = MultiMapProxy(self.loader, list_apps=True)
     resp = mmp.index_list(DummyReq())
     assert 'foo' in resp.response
Exemple #3
0
 def test_listing_without_apps(self):
     self.make_conf_file('foo.yaml')
     mmp = MultiMapProxy(self.loader)
     resp = mmp.index_list(DummyReq())
     assert 'foo' not in resp.response
     assert mmp.proj_app('foo') is not None
Exemple #4
0
 def test_listing_with_apps(self):
     self.make_conf_file('foo.yaml')
     mmp = MultiMapProxy(self.loader, list_apps=True)
     resp = mmp.index_list(DummyReq())
     assert 'foo' in resp.response
Exemple #5
0
 def test_listing_without_apps(self, loader):
     self.make_conf_file(loader.base_dir, "foo.yaml")
     mmp = MultiMapProxy(loader)
     resp = mmp.index_list(DummyReq())
     assert "foo" not in resp.response
     assert mmp.proj_app("foo") is not None
Exemple #6
0
 def test_listing_with_apps(self, loader):
     self.make_conf_file(loader.base_dir, "foo.yaml")
     mmp = MultiMapProxy(loader, list_apps=True)
     resp = mmp.index_list(DummyReq())
     assert "foo" in resp.response