Files
function/templates/dashboard/http_functions/tests.html
2025-12-03 21:12:35 +11:00

30 lines
841 B
HTML

{% extends 'dashboard.html' %}
{% block page %}
{{ render_partial('dashboard/http_functions/header.html', user_id=user_id, function_id=function_id,
active_tab='tests',
show_edit_form=True,
show_logs=True,
show_client=True,
show_history=True,
show_tests=True,
cancel_url=cancel_url,
edit_url=url_for('http.editor', function_id=function_id),
logs_url=url_for('http.logs', function_id=function_id),
history_url=url_for('http.history', function_id=function_id),
tests_url=url_for('http.tests', function_id=function_id)) }}
<div id="test-runner"></div>
<script>
m.mount(document.getElementById('test-runner'), {
view: function () {
return m(TestRunner, {
function_id: {{ function_id }},
function_name: '{{ name }}'
});
}
});
</script>
{% endblock %}