diff options
author | Tim Harder <radhermit@gmail.com> | 2021-03-07 02:13:32 -0700 |
---|---|---|
committer | Tim Harder <radhermit@gmail.com> | 2021-03-07 02:15:15 -0700 |
commit | eeba15408d72848de9ad2cc0fec052c9c4a56e5b (patch) | |
tree | 390efadf1bf0cd23236ce7fb2d11ddf1dd93f7f0 /tests | |
parent | pkgdev commit: fix class comparisons (diff) | |
download | pkgdev-eeba15408d72848de9ad2cc0fec052c9c4a56e5b.tar.gz pkgdev-eeba15408d72848de9ad2cc0fec052c9c4a56e5b.tar.bz2 pkgdev-eeba15408d72848de9ad2cc0fec052c9c4a56e5b.zip |
pkgdev commit: support generating manifest commit summaries
Fixes #12.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/scripts/test_pkgdev_commit.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/scripts/test_pkgdev_commit.py b/tests/scripts/test_pkgdev_commit.py index 0cfd9dc..dc0da80 100644 --- a/tests/scripts/test_pkgdev_commit.py +++ b/tests/scripts/test_pkgdev_commit.py @@ -261,6 +261,18 @@ class TestPkgdevCommit: repo.create_ebuild(f'cat/pkg-{v}') assert commit() == 'cat/pkg: add versions' + # create Manifest + with open(pjoin(git_repo.path, 'cat/pkg/Manifest'), 'w') as f: + f.write('DIST pkg-3.tar.gz 101 BLAKE2B deadbeef SHA512 deadbeef\n') + assert commit() == 'cat/pkg: update Manifest' + # update Manifest + with open(pjoin(git_repo.path, 'cat/pkg/Manifest'), 'a+') as f: + f.write('DIST pkg-2.tar.gz 101 BLAKE2B deadbeef SHA512 deadbeef\n') + assert commit() == 'cat/pkg: update Manifest' + # remove Manifest + os.remove(pjoin(git_repo.path, 'cat/pkg/Manifest')) + assert commit() == 'cat/pkg: update Manifest' + # single removal os.remove(pjoin(git_repo.path, 'cat/pkg/pkg-3.ebuild')) assert commit() == 'cat/pkg: drop 3' |