Debian Codegraph @

tests/platforms/windows/conftest.py

raw
1 import pytest
2
3 from ...utils import create_file
4
5
6 # Windows' AppConfig requires attribute 'packaging_format'
7 @pytest.fixture
8 def first_app_config(first_app_config):
9 first_app_config.packaging_format = "msi"
10 return first_app_config
11
12
13 @pytest.fixture
14 def external_first_app(first_app_config, tmp_path):
15 first_app_config = first_app_config.copy()
16 first_app_config.sources = None
17 first_app_config.external_package_path = tmp_path / "base_path/external/src"
18 first_app_config.external_package_executable_path = "internal/app.exe"
19
20 # Create the binary
21 create_file(
22 tmp_path / "base_path/external/src/internal/app.exe",
23 "external binary",
24 )
25
26 return first_app_config