We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e94d2a0 commit 66d908fCopy full SHA for 66d908f
1 file changed
tests/test_ai_tutor.py
@@ -261,5 +261,18 @@ def test_get_prompt__has__homework__msg__instruction(
261
), f"Could not find instruction: {instruction} in result: {result}."
262
263
264
+def test_load_locale(explanation_in:str, homework:Tuple[str]):
265
+ result = ai_tutor.load_locale(explanation_in)
266
+
267
+ assert 'directive' in result
268
269
+ assert any(
270
+ map(
271
+ lambda x: x in result['directive'].lower(),
272
+ homework
273
+ )
274
275
276
277
if '__main__' == __name__:
278
pytest.main([__file__])
0 commit comments