11 lines
375 B
Python
11 lines
375 B
Python
import importlib
|
|
import tomllib
|
|
from pathlib import Path
|
|
|
|
|
|
def test_flet_entry_point_keeps_app_as_a_package() -> None:
|
|
config = tomllib.loads(Path("pyproject.toml").read_text())
|
|
assert config["tool"]["flet"]["app"]["path"] == "."
|
|
assert config["tool"]["flet"]["app"]["module"] == "main"
|
|
entry = importlib.import_module("main")
|
|
assert callable(entry.main)
|