Skip to content

Commit

Permalink
tests: add deprecated and masked attr tests for ebuild pkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
radhermit committed Jun 18, 2024
1 parent 0ffc796 commit 4c4c4d3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions tests/pkg/test_ebuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,18 @@ def test_ebuild(self, ebuild_repo):
with pytest.raises(PkgcraftError):
pkg.ebuild

def test_deprecated(self):
pkg = TEST_DATA.repos["metadata"]["deprecated/deprecated-0"]
assert pkg.deprecated
pkg = TEST_DATA.repos["metadata"]["deprecated/deprecated-1"]
assert not pkg.deprecated

def test_masked(self):
pkg = TEST_DATA.repos["metadata"]["masked/masked-0"]
assert pkg.masked
pkg = TEST_DATA.repos["metadata"]["masked/masked-1"]
assert not pkg.masked

def test_description(self):
pkg = TEST_DATA.repos["metadata"]["optional/none-8"]
assert pkg.description == "ebuild with no optional metadata fields"
Expand Down

0 comments on commit 4c4c4d3

Please sign in to comment.