Skip to content
exercise-docker.py 536 B
Newer Older
from __future__ import annotations


def main():
    from course.page.code import request_run

    req = {
        "setup_code": "a,b=5,2",
        "names_for_user": ["a", "b"],
        "user_code": "c = a+b",
        "names_from_user": [],
        "test_from_user": [],
        "compile_only": False
        }
    count = 0
    while True:
Josh Asplund's avatar
Josh Asplund committed
        print(count)
        count += 1
        res = request_run(req, 10)
        if res["result"] != "success":
Josh Asplund's avatar
Josh Asplund committed
            print(res)
if __name__ == "__main__":
    main()