File: test_run_dev.py

package info (click to toggle)
python-briefcase 0.3.25-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,596 kB
  • sloc: python: 62,519; makefile: 60
file content (25 lines) | stat: -rw-r--r-- 671 bytes parent folder | download
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={})