diff --git a/apitester/apitester/settings.py b/apitester/apitester/settings.py index 74d22b7..764cb03 100644 --- a/apitester/apitester/settings.py +++ b/apitester/apitester/settings.py @@ -210,4 +210,4 @@ # Settings here might use parts overwritten in local settings API_ROOT = API_HOST + API_BASE_PATH + API_VERSION -BASE_URL='http://127.0.0.1:8000' \ No newline at end of file +OAUTH_BASE_URL='http://127.0.0.1:8000' \ No newline at end of file diff --git a/apitester/obp/views.py b/apitester/obp/views.py index 447d7ab..45e167f 100644 --- a/apitester/obp/views.py +++ b/apitester/obp/views.py @@ -52,7 +52,7 @@ def get_callback_uri(self, request): initiation at OAuth server """ #base_url = '{}://{}'.format(request.scheme, request.environ['HTTP_HOST']) - base_url = settings.BASE_URL + base_url = settings.OAUTH_BASE_URL uri = base_url + reverse('oauth-authorize') if 'next' in request.GET: uri = '{}?next={}'.format(uri, request.GET['next']) diff --git a/apitester/runtests/static/runtests/js/runtests.js b/apitester/runtests/static/runtests/js/runtests.js index 069a64f..944ab50 100644 --- a/apitester/runtests/static/runtests/js/runtests.js +++ b/apitester/runtests/static/runtests/js/runtests.js @@ -49,11 +49,13 @@ $(function() { } } }); + $('.runner button.forTest').click(function() { var runner = $(this).parent().parent().parent(); $(runner).find('.result').empty(); runTest(runner); }); + $('.runner button.forSave').click(function() { var t = $(this) var runner = $(this).parent().parent().parent(); @@ -131,6 +133,7 @@ $(function() { $('#checkNone').click(function() { $('.runner').find('input').prop('checked', false); }); + $('#checkAll').click(function() { $('.runner').find('input').prop('checked', true); }); diff --git a/apitester/runtests/templates/runtests/index.html b/apitester/runtests/templates/runtests/index.html index d384157..fb67d3e 100644 --- a/apitester/runtests/templates/runtests/index.html +++ b/apitester/runtests/templates/runtests/index.html @@ -129,7 +129,8 @@