WIP: Add tests for http functions
This commit is contained in:
30
templates/dashboard/http_functions/tests.html
Normal file
30
templates/dashboard/http_functions/tests.html
Normal 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 %}
|
||||
Reference in New Issue
Block a user