override fun createCourse()

in intellij-plugin/Edu-Python/testSrc/com/jetbrains/edu/python/slow/checker/PyCheckersTest.kt [15:49]


  override fun createCourse(): Course {
    return course(language = PythonLanguage.INSTANCE) {
      lesson {
        eduTask("Edu") {
          pythonTaskFile("hello_world.py", """print("Hello, world! My name is type your name")""")
          pythonTaskFile("tests.py", """print("#educational_plugin test OK")""")
        }
        outputTask("Output") {
          pythonTaskFile("hello_world.py", """print("Hello, World!")""")
          taskFile("output.txt") {
            withText("Hello, World!\n")
          }
        }
        outputTask("Output with input.txt") {
          pythonTaskFile("hello_world.py", """
            a = input()
            print(a + " World!")
          """)
          taskFile("output.txt") {
            withText("Hello, World!")
          }
          taskFile("input.txt") {
            withText("Hello,")
          }
        }
        eduTask("NonZeroExitCodeInTests") {
          pythonTaskFile("hello_world.py", """print("Hello, world!")""")
          pythonTaskFile("tests.py", """
            print("#educational_plugin test OK")
            exit(1)
          """)
        }
      }
    }
  }