16 lines
491 B
Python
16 lines
491 B
Python
|
|
from __future__ import annotations
|
||
|
|
|
||
|
|
import tomllib
|
||
|
|
from pathlib import Path
|
||
|
|
|
||
|
|
|
||
|
|
def test_pyproject_includes_static_assets_in_package_data() -> None:
|
||
|
|
pyproject_path = Path(__file__).resolve().parents[1] / "pyproject.toml"
|
||
|
|
config = tomllib.loads(pyproject_path.read_text(encoding="utf-8"))
|
||
|
|
|
||
|
|
package_data = config["tool"]["setuptools"]["package-data"]["repub"]
|
||
|
|
|
||
|
|
assert "sql/*.sql" in package_data
|
||
|
|
assert "static/*.css" in package_data
|
||
|
|
assert "static/*.js" in package_data
|