Skip to content
GitLab
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
Sep 08, 2024
by
Artem Baranovskyi
Browse files
Small roll-up and test fix.
parent
1fcbf1c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
asystgrade/tests/quiz_api_test.php
View file @
72d61108
...
@@ -212,7 +212,7 @@ class quiz_api_test extends advanced_testcase
...
@@ -212,7 +212,7 @@ class quiz_api_test extends advanced_testcase
$apiendpoint
=
get_config
(
'local_asystgrade'
,
'apiendpoint'
);
$apiendpoint
=
get_config
(
'local_asystgrade'
,
'apiendpoint'
);
if
(
!
$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
);
error_log
(
'APIendpoint: '
.
$apiendpoint
);
...
@@ -227,7 +227,7 @@ class quiz_api_test extends advanced_testcase
...
@@ -227,7 +227,7 @@ class quiz_api_test extends advanced_testcase
'referenceAnswer'
=>
$referenceAnswer
,
'referenceAnswer'
=>
$referenceAnswer
,
'studentAnswers'
=>
$studentAnswers
'studentAnswers'
=>
$studentAnswers
];
];
var_dump
(
$data
);
//
var_dump($data);
error_log
(
"Data to send to API: "
.
print_r
(
$data
,
true
));
error_log
(
"Data to send to API: "
.
print_r
(
$data
,
true
));
$response
=
$apiClient
->
send_data
(
$data
);
$response
=
$apiClient
->
send_data
(
$data
);
...
...
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