Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Pado
Asyst Moodle Plugin
Commits
72d61108
Commit
72d61108
authored
10 months ago
by
Artem Baranovskyi
Browse files
Options
Download
Email Patches
Plain Diff
Small roll-up and test fix.
parent
1fcbf1c3
asystgrade-master-project
2-please-don-t-call-curl_init-directly-and-instead-use-moodle-s-curl-class
4-can-the-post-be-sanitised-before-passing-to-the-external-service
2 merge requests
!3
Fixed whole Docker infrastructure with dummy moodle plugin.
,
!2
Draft: Resolve "can the post be sanitised before passing to the external service?"
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
asystgrade/tests/quiz_api_test.php
+2
-2
asystgrade/tests/quiz_api_test.php
with
2 additions
and
2 deletions
+2
-2
asystgrade/tests/quiz_api_test.php
+
2
-
2
View file @
72d61108
...
...
@@ -212,7 +212,7 @@ class quiz_api_test extends advanced_testcase
$apiendpoint
=
get_config
(
'local_asystgrade'
,
'apiendpoint'
);
if
(
!
$apiendpoint
)
{
$apiendpoint
=
'http://
127.0.0.1
:5000/api/autograde'
;
// Default setting
$apiendpoint
=
'http://
flask
:5000/api/autograde'
;
// Default setting
}
error_log
(
'APIendpoint: '
.
$apiendpoint
);
...
...
@@ -227,7 +227,7 @@ class quiz_api_test extends advanced_testcase
'referenceAnswer'
=>
$referenceAnswer
,
'studentAnswers'
=>
$studentAnswers
];
var_dump
(
$data
);
//
var_dump($data);
error_log
(
"Data to send to API: "
.
print_r
(
$data
,
true
));
$response
=
$apiClient
->
send_data
(
$data
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets