Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_html(deep_profiler_session):
HTMLRenderer().render(deep_profiler_session)
def output_html(self, root=None):
return renderers.HTMLRenderer().render(self.last_session)
def get_renderer_class(renderer):
if renderer == 'text':
return renderers.ConsoleRenderer
elif renderer == 'html':
return renderers.HTMLRenderer
elif renderer == 'json':
return renderers.JSONRenderer
else:
return object_with_import_path(renderer)
def open_in_browser(self):
return renderers.HTMLRenderer().open_in_browser(self.last_session)