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