"""
Main console test.
"""

import os
from ditz.console import main


def test_run():
    "Test main application"

    os.chdir("example")

    main(["--trace", "todo"])
    for arg in "repo", "issues", "project":
        main(["--trace", "--path", arg])

    os.chdir("..")


if __name__ == "__main__":
    test_run()
