Skip to content

Commit a965cab

Browse files
committed
tests: add more ebuild pkg XML metadata tests
1 parent 2a1ce44 commit a965cab

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

testdata

Submodule testdata updated 64 files

tests/pkg/test_ebuild.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,9 +521,13 @@ def test_upstream(self, ebuild_repo):
521521
# single
522522
pkg = TEST_DATA.repos["xml"]["pkg/single-8"]
523523
u = pkg.upstream
524-
assert len(u.remote_ids) == 1
524+
assert list(map(str, u.maintainers)) == ["upstream (active)"]
525+
assert list(map(repr, u.maintainers)) == ["<UpstreamMaintainer 'upstream (active)'>"]
525526
assert list(map(str, u.remote_ids)) == ["github: pkgcraft/pkgcraft"]
526527
assert list(map(repr, u.remote_ids)) == ["<RemoteId 'github: pkgcraft/pkgcraft'>"]
528+
assert u.bugs_to == "https://github.com/pkgcraft/pkgcraft/issues"
529+
assert u.changelog is None
530+
assert u.doc == "https://github.com/pkgcraft/pkgcraft"
527531

528532
# multiple
529533
path = ebuild_repo.create_ebuild("cat/b-1")

0 commit comments

Comments
 (0)