1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
import re
import pytest
from briefcase.exceptions import UnsupportedCommandError
from briefcase.platforms.web.static import StaticWebDevCommand
@pytest.fixture
def dev_command(dummy_console, tmp_path):
return StaticWebDevCommand(
console=dummy_console,
base_path=tmp_path / "base_path",
data_path=tmp_path / "briefcase",
)
def test_run_dev_app_unsupported(dev_command, first_app_built):
with pytest.raises(
UnsupportedCommandError,
match=re.escape(
"The dev command for the web static format has not been implemented (yet!)."
),
):
dev_command.run_dev_app(first_app_built, env={})
|