Skip to content

Commit dfb249b

Browse files
committed
Placeholders for test_build_full_ai_prompt unit test
1 parent 5f860c4 commit dfb249b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/question_test.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ public function test_get_question_summary(): void {
113113
*/
114114
public function test_build_full_ai_prompt(): void {
115115
$this->resetAfterTest();
116+
if (!$this->islive) {
117+
$this->markTestSkipped('No live connection to the AI system');
118+
}
116119

117120
$question = qtype_aitext_test_helper::make_aitext_question([]);
118121
set_config('prompt', 'in [responsetext] ', 'qtype_aitext');
@@ -121,6 +124,9 @@ public function test_build_full_ai_prompt(): void {
121124
set_config('jsonprompt', 'testprompt', 'qtype_aitext');
122125

123126
$response = '<p> Thank you </p>';
127+
$aiprompt = '';
128+
$defaultmark = '';
129+
$markscheme = '';
124130
$result = $question->build_full_ai_prompt($response, $aiprompt, $defaultmark, $markscheme);
125131

126132
$this->assertStringContainsString('[[ Thank you ]]', $result);

0 commit comments

Comments
 (0)