mirror of
https://github.com/chatmail/relay.git
synced 2026-05-10 16:04:37 +00:00
14 lines
480 B
Python
14 lines
480 B
Python
import importlib.resources
|
|
|
|
from cmdeploy.www import build_webpages
|
|
|
|
|
|
def test_build_webpages(tmp_path, make_config):
|
|
pkgroot = importlib.resources.files("cmdeploy")
|
|
src_dir = pkgroot.joinpath("../../../www/src").resolve()
|
|
assert src_dir.exists(), src_dir
|
|
config = make_config("chat.example.org")
|
|
build_dir = tmp_path.joinpath("build")
|
|
build_webpages(src_dir, build_dir, config)
|
|
assert len([x for x in build_dir.iterdir() if x.suffix == ".html"]) >= 3
|