| 
						
					 | 
				
			
			 | 
			 | 
			
				@ -131,25 +131,6 @@ def test_sign_skip(application_repository: ApplicationRepository, package_ahrima
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    application_repository.sign([])
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				def test_sign_specific(application_repository: ApplicationRepository, package_ahriman: Package,
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				                       package_python_schedule: Package, mocker: MockerFixture) -> None:
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    """
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    must sign only specified packages
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    """
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    mocker.patch("ahriman.core.repository.repository.Repository.packages",
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				                 return_value=[package_ahriman, package_python_schedule])
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    sign_package_mock = mocker.patch("ahriman.core.sign.gpg.GPG.process_sign_package")
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    sign_repository_mock = mocker.patch("ahriman.core.sign.gpg.GPG.process_sign_repository")
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    on_result_mock = mocker.patch(
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				        "ahriman.application.application.application_repository.ApplicationRepository.on_result")
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    filename = package_ahriman.packages[package_ahriman.base].filepath
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    application_repository.sign([package_ahriman.base])
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    sign_package_mock.assert_called_once_with(filename, None)
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    sign_repository_mock.assert_called_once_with(application_repository.repository.repo.repo_path)
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    on_result_mock.assert_called_once_with(Result())
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				def test_unknown_no_aur(application_repository: ApplicationRepository, package_ahriman: Package,
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				                        mocker: MockerFixture) -> None:
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    """
 | 
			
		
		
	
	
		
			
				
					
					| 
						
					 | 
				
			
			 | 
			 | 
			
				@ -239,11 +220,13 @@ def test_updates_all(application_repository: ApplicationRepository, package_ahri
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				                                    return_value=[package_ahriman])
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_local_mock = mocker.patch("ahriman.core.repository.update_handler.UpdateHandler.updates_local")
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_manual_mock = mocker.patch("ahriman.core.repository.update_handler.UpdateHandler.updates_manual")
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_deps_mock = mocker.patch("ahriman.core.repository.update_handler.UpdateHandler.updates_dependencies")
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    application_repository.updates([], aur=True, local=True, manual=True, vcs=True)
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    application_repository.updates([], aur=True, local=True, manual=True, vcs=True, check_files=True)
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_aur_mock.assert_called_once_with([], vcs=True)
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_local_mock.assert_called_once_with(vcs=True)
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_manual_mock.assert_called_once_with()
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_deps_mock.assert_called_once_with([])
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				def test_updates_disabled(application_repository: ApplicationRepository, mocker: MockerFixture) -> None:
 | 
			
		
		
	
	
		
			
				
					
					| 
						
					 | 
				
			
			 | 
			 | 
			
				@ -253,11 +236,13 @@ def test_updates_disabled(application_repository: ApplicationRepository, mocker:
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_aur_mock = mocker.patch("ahriman.core.repository.update_handler.UpdateHandler.updates_aur")
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_local_mock = mocker.patch("ahriman.core.repository.update_handler.UpdateHandler.updates_local")
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_manual_mock = mocker.patch("ahriman.core.repository.update_handler.UpdateHandler.updates_manual")
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_deps_mock = mocker.patch("ahriman.core.repository.update_handler.UpdateHandler.updates_dependencies")
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    application_repository.updates([], aur=False, local=False, manual=False, vcs=True)
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    application_repository.updates([], aur=False, local=False, manual=False, vcs=True, check_files=False)
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_aur_mock.assert_not_called()
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_local_mock.assert_not_called()
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_manual_mock.assert_not_called()
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_deps_mock.assert_not_called()
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				def test_updates_no_aur(application_repository: ApplicationRepository, mocker: MockerFixture) -> None:
 | 
			
		
		
	
	
		
			
				
					
					| 
						
					 | 
				
			
			 | 
			 | 
			
				@ -267,11 +252,13 @@ def test_updates_no_aur(application_repository: ApplicationRepository, mocker: M
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_aur_mock = mocker.patch("ahriman.core.repository.update_handler.UpdateHandler.updates_aur")
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_local_mock = mocker.patch("ahriman.core.repository.update_handler.UpdateHandler.updates_local")
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_manual_mock = mocker.patch("ahriman.core.repository.update_handler.UpdateHandler.updates_manual")
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_deps_mock = mocker.patch("ahriman.core.repository.update_handler.UpdateHandler.updates_dependencies")
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    application_repository.updates([], aur=False, local=True, manual=True, vcs=True)
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    application_repository.updates([], aur=False, local=True, manual=True, vcs=True, check_files=True)
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_aur_mock.assert_not_called()
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_local_mock.assert_called_once_with(vcs=True)
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_manual_mock.assert_called_once_with()
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_deps_mock.assert_called_once_with([])
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				def test_updates_no_local(application_repository: ApplicationRepository, mocker: MockerFixture) -> None:
 | 
			
		
		
	
	
		
			
				
					
					| 
						
					 | 
				
			
			 | 
			 | 
			
				@ -281,11 +268,13 @@ def test_updates_no_local(application_repository: ApplicationRepository, mocker:
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_aur_mock = mocker.patch("ahriman.core.repository.update_handler.UpdateHandler.updates_aur")
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_local_mock = mocker.patch("ahriman.core.repository.update_handler.UpdateHandler.updates_local")
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_manual_mock = mocker.patch("ahriman.core.repository.update_handler.UpdateHandler.updates_manual")
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_deps_mock = mocker.patch("ahriman.core.repository.update_handler.UpdateHandler.updates_dependencies")
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    application_repository.updates([], aur=True, local=False, manual=True, vcs=True)
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    application_repository.updates([], aur=True, local=False, manual=True, vcs=True, check_files=True)
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_aur_mock.assert_called_once_with([], vcs=True)
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_local_mock.assert_not_called()
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_manual_mock.assert_called_once_with()
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_deps_mock.assert_called_once_with([])
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				def test_updates_no_manual(application_repository: ApplicationRepository, mocker: MockerFixture) -> None:
 | 
			
		
		
	
	
		
			
				
					
					| 
						
					 | 
				
			
			 | 
			 | 
			
				@ -295,11 +284,13 @@ def test_updates_no_manual(application_repository: ApplicationRepository, mocker
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_aur_mock = mocker.patch("ahriman.core.repository.update_handler.UpdateHandler.updates_aur")
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_local_mock = mocker.patch("ahriman.core.repository.update_handler.UpdateHandler.updates_local")
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_manual_mock = mocker.patch("ahriman.core.repository.update_handler.UpdateHandler.updates_manual")
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_deps_mock = mocker.patch("ahriman.core.repository.update_handler.UpdateHandler.updates_dependencies")
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    application_repository.updates([], aur=True, local=True, manual=False, vcs=True)
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    application_repository.updates([], aur=True, local=True, manual=False, vcs=True, check_files=True)
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_aur_mock.assert_called_once_with([], vcs=True)
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_local_mock.assert_called_once_with(vcs=True)
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_manual_mock.assert_not_called()
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_deps_mock.assert_called_once_with([])
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				def test_updates_no_vcs(application_repository: ApplicationRepository, mocker: MockerFixture) -> None:
 | 
			
		
		
	
	
		
			
				
					
					| 
						
					 | 
				
			
			 | 
			 | 
			
				@ -309,11 +300,29 @@ def test_updates_no_vcs(application_repository: ApplicationRepository, mocker: M
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_aur_mock = mocker.patch("ahriman.core.repository.update_handler.UpdateHandler.updates_aur")
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_local_mock = mocker.patch("ahriman.core.repository.update_handler.UpdateHandler.updates_local")
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_manual_mock = mocker.patch("ahriman.core.repository.update_handler.UpdateHandler.updates_manual")
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_deps_mock = mocker.patch("ahriman.core.repository.update_handler.UpdateHandler.updates_dependencies")
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    application_repository.updates([], aur=True, local=True, manual=True, vcs=False)
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    application_repository.updates([], aur=True, local=True, manual=True, vcs=False, check_files=True)
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_aur_mock.assert_called_once_with([], vcs=False)
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_local_mock.assert_called_once_with(vcs=False)
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_manual_mock.assert_called_once_with()
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_deps_mock.assert_called_once_with([])
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				def test_updates_no_check_files(application_repository: ApplicationRepository, mocker: MockerFixture) -> None:
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    """
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    must get updates without checking broken links
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    """
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_aur_mock = mocker.patch("ahriman.core.repository.update_handler.UpdateHandler.updates_aur")
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_local_mock = mocker.patch("ahriman.core.repository.update_handler.UpdateHandler.updates_local")
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_manual_mock = mocker.patch("ahriman.core.repository.update_handler.UpdateHandler.updates_manual")
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_deps_mock = mocker.patch("ahriman.core.repository.update_handler.UpdateHandler.updates_dependencies")
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    application_repository.updates([], aur=True, local=True, manual=True, vcs=True, check_files=False)
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_aur_mock.assert_called_once_with([], vcs=True)
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_local_mock.assert_called_once_with(vcs=True)
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_manual_mock.assert_called_once_with()
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_deps_mock.assert_not_called()
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				def test_updates_with_filter(application_repository: ApplicationRepository, mocker: MockerFixture) -> None:
 | 
			
		
		
	
	
		
			
				
					
					| 
						
					 | 
				
			
			 | 
			 | 
			
				@ -323,8 +332,10 @@ def test_updates_with_filter(application_repository: ApplicationRepository, mock
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_aur_mock = mocker.patch("ahriman.core.repository.update_handler.UpdateHandler.updates_aur")
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_local_mock = mocker.patch("ahriman.core.repository.update_handler.UpdateHandler.updates_local")
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_manual_mock = mocker.patch("ahriman.core.repository.update_handler.UpdateHandler.updates_manual")
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_deps_mock = mocker.patch("ahriman.core.repository.update_handler.UpdateHandler.updates_dependencies")
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    application_repository.updates(["filter"], aur=True, local=True, manual=True, vcs=True)
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    application_repository.updates(["filter"], aur=True, local=True, manual=True, vcs=True, check_files=True)
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_aur_mock.assert_called_once_with(["filter"], vcs=True)
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_local_mock.assert_called_once_with(vcs=True)
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_manual_mock.assert_called_once_with()
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    updates_deps_mock.assert_called_once_with(["filter"])
 | 
			
		
		
	
	
		
			
				
					
					| 
						 
							
							
							
						 
					 | 
				
			
			 | 
			 | 
			
				
 
 |