WIP: Add tests for http functions

This commit is contained in:
Peter Stockings
2025-12-03 21:12:35 +11:00
parent c5eb1ce463
commit 049c875bc2
14 changed files with 979 additions and 69 deletions

View File

@@ -0,0 +1,30 @@
{% 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 %}