@@ -476,6 +476,35 @@ def commit():
476476 repo .create_ebuild ('cat/pkg-6' , eapi = '7' )
477477 assert commit () == 'cat/pkg: update EAPI 6 -> 7'
478478
479+ # update description
480+ repo .create_ebuild ('cat/pkg-7' )
481+ git_repo .add_all ('cat/pkg-7' )
482+ repo .create_ebuild ('cat/pkg-7' , description = 'something' )
483+ assert commit () == 'cat/pkg: update DESCRIPTION'
484+
485+ # update description & homepage
486+ repo .create_ebuild ('cat/pkg-7' , description = 'another something' , homepage = 'https://gentoo.org' )
487+ assert commit () == 'cat/pkg: update DESCRIPTION, HOMEPAGE'
488+
489+ # update string_targets (USE_RUBY)
490+ repo .create_ebuild ('cat/pkg-8' , use_ruby = 'ruby27' )
491+ git_repo .add_all ('cat/pkg-8' )
492+ repo .create_ebuild ('cat/pkg-8' , use_ruby = 'ruby27 ruby30' )
493+ assert commit () == 'cat/pkg: enable ruby30'
494+ repo .create_ebuild ('cat/pkg-8' , use_ruby = 'ruby30' )
495+ assert commit () == 'cat/pkg: disable ruby27'
496+ repo .create_ebuild ('cat/pkg-8' , use_ruby = ' ' .join (f'ruby{ i } ' for i in range (30 , 40 )))
497+ assert commit () == 'cat/pkg: update USE_RUBY support'
498+
499+ # update array_targets (PYTHON_COMPAT)
500+ repo .create_ebuild ('cat/pkg-9' , data = 'PYTHON_COMPAT=( python3_9 )' )
501+ git_repo .add_all ('cat/pkg-9' )
502+ repo .create_ebuild ('cat/pkg-9' , data = 'PYTHON_COMPAT=( python3_{9..10} )' )
503+ assert commit () == 'cat/pkg: enable py3.10'
504+ repo .create_ebuild ('cat/pkg-9' , data = 'PYTHON_COMPAT=( python3_10 )' )
505+ assert commit () == 'cat/pkg: disable py3.9'
506+
507+
479508 # multiple ebuild modifications don't get a generated summary
480509 repo .create_ebuild ('cat/pkg-5' , keywords = ['~amd64' ])
481510 repo .create_ebuild ('cat/pkg-6' , keywords = ['~amd64' ])
0 commit comments