File: test_validate_app_name.py

package info (click to toggle)
python-briefcase 0.3.22-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,300 kB
  • sloc: python: 59,405; makefile: 57
file content (18 lines) | stat: -rw-r--r-- 520 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import pytest


@pytest.mark.parametrize(
    "name",
    [
        "helloworld",
        "existing",
    ],
)
def test_valid_app_name(convert_command, name, tmp_path):
    """Test that valid app names are accepted, including pre-existing names."""
    (tmp_path / "existing").mkdir()

    # This is mostly tested by the equivalent test for the `new` command;
    # This test exists for a check that basic functionality still exists,
    # despite the other overrides.
    assert convert_command.validate_app_name(name)