def test_executes_gradle_command_with_arg(self):
     check = CiCheckGradleDependenciesOpenSearchVersion(
         component=MagicMock(),
         git_repo=MagicMock(),
         target=CiTarget(version="1.1.0", name="opensearch", snapshot=True),
         args="plugin",
     )
     check.git_repo.output.assert_called_once_with(
         './gradlew plugin:dependencies -Dopensearch.version=1.1.0-SNAPSHOT -Dbuild.snapshot=true --configuration compileOnly | grep -e "---"'
     )
 def __mock_check(self, props=None):
     with patch.object(
             CiCheckGradleDependenciesOpenSearchVersion,
             "_CiCheckGradleDependencies__get_dependencies",
     ) as mock_dependencies:
         mock_dependencies.return_value = PropertiesFile(props)
         return CiCheckGradleDependenciesOpenSearchVersion(
             component=MagicMock(),
             git_repo=MagicMock(),
             target=CiTarget(version="1.1.0",
                             name="opensearch",
                             snapshot=True),
             args=None,
         )
 def test_executes_gradle_command_qualifier(self) -> None:
     check = CiCheckGradleDependenciesOpenSearchVersion(
         component=MagicMock(),
         git_repo=MagicMock(),
         target=CiTarget(version="2.0.0",
                         name="opensearch",
                         qualifier="alpha1",
                         snapshot=True),
         args=None,
     )
     output = unittest.mock.create_autospec(check.git_repo.output)
     output.assert_called_once_with(
         './gradlew :dependencies -Dopensearch.version=2.0.0-alpha1-SNAPSHOT -Dbuild.snapshot=true -Dbuild.version_qualifier=alpha1 --configuration compileOnly | grep -e "---"'
     )