def test_create_resources(self, datadir, app_admin): json_file = str(datadir.join('resources.json')) add_resources(app_admin.app_router, json_file) resp = app_admin.get('/kiezkasse') assert resp.status_code == 200
def test_create_process(self, app_admin): from os.path import dirname import adhocracy_s1 test_process_file = dirname(adhocracy_s1.__file__) + \ '/test_process_fixture/resources/processes.json' add_resources(app_admin.app_router, test_process_file) resp = app_admin.get('/s1') assert resp.status_code == 200
def test_create_resources(self, datadir, process_url_public, app_admin): json_file_public = str(datadir.join('public.json')) add_resources(app_admin.app_router, json_file_public) resp = app_admin.get(process_url_public) assert resp.status_code == 200
def test_create_resources(self, datadir, process_url_private, process_url_public, app_admin): private = str(datadir.join('private.json')) add_resources(app_admin.app_router, private) public = str(datadir.join('public.json')) add_resources(app_admin.app_router, public) public_local_roles = str(datadir.join('public_local_roles.json')) add_local_roles(app_admin.app_router, public_local_roles) resp = app_admin.get(process_url_private) assert resp.status_code == 200 resp = app_admin.get(process_url_public) assert resp.status_code == 200
def test_create_resources(self, process_url, datadir, app_admin): json_file_private = str(datadir.join('private.json')) add_resources(app_admin.app_router, json_file_private) resp = app_admin.get(process_url) assert resp.status_code == 200