def test_render_JASP_no_manifest(self, metadata, no_manifest_path, url, assets_url, export_url): try: renderer = JASPRenderer(metadata, no_manifest_path, url, assets_url, export_url) renderer.render() except RendererError: return assert False # should not get here
def test_render_JASP_data_archive_is_too_old(self, metadata, data_archive_version_is_too_old_path, url, assets_url, export_url): try: renderer = JASPRenderer(metadata, data_archive_version_is_too_old_path, url, assets_url, export_url) renderer.render() except RendererError: return assert False # should not get here
def test_render_JASP_contains_malicious_script( self, metadata, contains_malicious_script_path, url, assets_url, export_url): renderer = JASPRenderer(metadata, contains_malicious_script_path, url, assets_url, export_url) body = renderer.render() assert '<script src="link-to-something-malicious.js">' not in body
def test_render_JASP_contains_malicious_script(self, metadata, contains_malicious_script_path, url, assets_url, export_url): renderer = JASPRenderer(metadata, contains_malicious_script_path, url, assets_url, export_url) body = renderer.render() assert '<script src="link-to-something-malicious.js">' not in body
def renderer(metadata, ok_path, url, assets_url, export_url): return JASPRenderer(metadata, ok_path, url, assets_url, export_url)