diff --git a/python/edu/course-creator/resources/fileTemplates/internal/test_helper.py.ft b/python/edu/course-creator/resources/fileTemplates/internal/test_helper.py.ft index 313b9150c467..c08945e0a747 100644 --- a/python/edu/course-creator/resources/fileTemplates/internal/test_helper.py.ft +++ b/python/edu/course-creator/resources/fileTemplates/internal/test_helper.py.ft @@ -46,9 +46,9 @@ def check_importable_path(path): try: import_file(path) except: - failed("File contains syntax errors", test_file_importable.__name__) + failed("File contains syntax errors", test_file_importable.func_name) return - passed(test_file_importable.__name__) + passed(test_file_importable.func_name) def import_file(path): @@ -126,11 +126,11 @@ def test_text_equals(text, error_text): failed(error_text) -def test_window_text_deleted(error_text="Don't just delete task text"): +def test_answer_placeholders_text_deleted(error_text="Don't just delete task text"): """ - Checks that task windows are not empty + Checks that all answer placeholders are not empty """ - windows = get_task_windows() + windows = get_answer_placeholders() for window in windows: if len(window) == 0: @@ -153,9 +153,9 @@ def passed(name=None): print("#educational_plugin " + name + " test OK") -def get_task_windows(file_name=None): +def get_answer_placeholders(file_name=None): """ - Returns all task windows + Returns all answer placeholders text """ prefix = "#educational_plugin_window = " import os @@ -198,4 +198,4 @@ def run_common_tests(error_text="Please, reload file and try again"): test_file_importable() test_is_not_empty() test_is_initial_text(error_text) - test_window_text_deleted(error_text) \ No newline at end of file + test_answer_placeholders_text_deleted(error_text) \ No newline at end of file diff --git a/python/edu/course-creator/resources/fileTemplates/internal/tests.py.ft b/python/edu/course-creator/resources/fileTemplates/internal/tests.py.ft index 788d6f93c49c..c6e2c659a000 100644 --- a/python/edu/course-creator/resources/fileTemplates/internal/tests.py.ft +++ b/python/edu/course-creator/resources/fileTemplates/internal/tests.py.ft @@ -1,10 +1,10 @@ -from test_helper import run_common_tests, failed, passed, get_task_windows +from test_helper import run_common_tests, failed, passed, get_answer_placeholders -def test_task_windows(): - windows = get_task_windows() - window = windows[0] - if window == "": # TODO: your condition here +def test_answer_placeholders(): + placeholders = get_answer_placeholders() + placeholder = placeholders[0] + if placeholder == "": # TODO: your condition here passed() else: failed() @@ -12,6 +12,6 @@ def test_task_windows(): if __name__ == '__main__': run_common_tests() - # test_task_windows() # TODO: uncomment test call + # test_answer_placeholders() # TODO: uncomment test call diff --git a/python/edu/learn-python/resources/courses/introduction_course.zip b/python/edu/learn-python/resources/courses/introduction_course.zip index d6a4303a0a0f..d84a8d2a80cb 100644 Binary files a/python/edu/learn-python/resources/courses/introduction_course.zip and b/python/edu/learn-python/resources/courses/introduction_course.zip differ