Sideband_CE/sbapp/kivymd/tests/test_create_project.py

16 lines
436 B
Python
Raw Normal View History

2022-07-07 22:16:10 +02:00
def test_create_project():
import os
os.system(
2022-10-02 17:16:59 +02:00
f"python3.10 -m kivymd.tools.patterns.create_project "
2022-07-07 22:16:10 +02:00
f"MVC "
f"{os.path.expanduser('~')} "
f"TestProject "
2022-10-02 17:16:59 +02:00
f"python3.10 "
f"stable "
2022-07-07 22:16:10 +02:00
f"--name_screen TestProjectScreen "
f"--name_database restdb "
f"--use_hotreload yes"
)
assert os.path.exists(os.path.join(os.path.expanduser("~"), "TestProject"))