MCPcopy Create free account
hub / github.com/archlinux/alpm / valid_srcinfo_content

Function valid_srcinfo_content

python-alpm/tests/conftest.py:5–54  ·  view source on GitHub ↗

Fixture providing valid SRCINFO content.

()

Source from the content-addressed store, hash-verified

3
4@pytest.fixture
5def valid_srcinfo_content() -> str:
6 """Fixture providing valid SRCINFO content."""
7 return """
8pkgbase = example
9 pkgdesc = A example with all pkgbase properties set.
10 pkgver = 0.1.0
11 pkgrel = 1
12 epoch = 1
13 url = https://archlinux.org
14 install = install.sh.stub
15 changelog = changelog.stub
16 arch = x86_64
17 arch = aarch64
18 groups = group
19 groups = group_2
20 license = MIT
21 depends = default_dep
22 optdepends = default_optdep
23 provides = default_provides
24 conflicts = default_conflict
25 replaces = default_replaces
26 options = !lto
27 backup = etc/pacman.conf
28 provides_x86_64 = arch_default_provides
29 conflicts_x86_64 = arch_default_conflict
30 depends_x86_64 = arch_default_dep
31 replaces_x86_64 = arch_default_replaces
32 optdepends_x86_64 = arch_default_optdep
33
34pkgname = example
35 pkgdesc = overridden
36 url = https://overridden.com/
37 install = overridden.stub
38 changelog = overridden.stub
39 groups = overridden
40 license = Apache-2.0
41 depends = overridden
42 optdepends = overridden
43 provides = overridden
44 conflicts = overridden
45 replaces = overridden
46 options = emptydirs
47 backup = overridden
48 provides_x86_64 = arch_overridden
49 conflicts_x86_64 = arch_overridden
50 depends_x86_64 = arch_overridden
51 replaces_x86_64 = arch_overridden
52 optdepends_x86_64 = arch_overridden
53
54"""
55
56
57@pytest.fixture

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected