Debian Codegraph @

tests/platforms/windows/visualstudio/test_create.py

raw
1 import pytest
2
3 from briefcase.platforms.windows.visualstudio import WindowsVisualStudioCreateCommand
4
5 # Most tests and fixtures are the same for both "app" and "visualstudio". This file only
6 # contains those that need to be overridden.
7 from ..app.create.test_create import * # noqa: F403
8
9
10 @pytest.fixture
11 def create_command(dummy_console, tmp_path):
12 return WindowsVisualStudioCreateCommand(
13 console=dummy_console,
14 base_path=tmp_path / "base_path",
15 data_path=tmp_path / "briefcase",
16 )
17
18
19 def test_package_path(create_command, first_app_config, tmp_path):
20 """The default package_path is passed as an absolute path."""
21 context = create_command.output_format_template_context(first_app_config)
22 assert context["package_path"] == str(
23 tmp_path / "base_path/build/first-app/windows/visualstudio/x64/Release"
24 )