# Copyright 2022 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).

from __future__ import annotations

from pants.testutil.pants_integration_test import run_pants


def test_generate_lockfile_without_python_backend() -> None:
    """Regression test for https://github.com/pantsbuild/pants/issues/14876."""
    run_pants(
        [
            "--backend-packages=pants.backend.experimental.cc.lint.clangformat",
            "--python-resolves={'clang-format':'cf.lock'}",
            "generate-lockfiles",
            "--resolve=clang-format",
        ]
    ).assert_success()

e47d765b65acadabc8344c34c36e236636f895e2
<mask token>

<mask token>


def test_generate_lockfile_without_python_backend() ->None:
    """Regression test for https://github.com/pantsbuild/pants/issues/14876."""
    run_pants([
        '--backend-packages=pants.backend.experimental.cc.lint.clangformat',
        "--python-resolves={'clang-format':'cf.lock'}",
        'generate-lockfiles', '--resolve=clang-format']).assert_success()

from __future__ import annotations
from pants.testutil.pants_integration_test import run_pants


def test_generate_lockfile_without_python_backend() ->None:
    """Regression test for https://github.com/pantsbuild/pants/issues/14876."""
    run_pants([
        '--backend-packages=pants.backend.experimental.cc.lint.clangformat',
        "--python-resolves={'clang-format':'cf.lock'}",
        'generate-lockfiles', '--resolve=clang-format']).assert_success()

# Copyright 2022 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).

from __future__ import annotations

from pants.testutil.pants_integration_test import run_pants


def test_generate_lockfile_without_python_backend() -> None:
    """Regression test for https://github.com/pantsbuild/pants/issues/14876."""
    run_pants(
        [
            "--backend-packages=pants.backend.experimental.cc.lint.clangformat",
            "--python-resolves={'clang-format':'cf.lock'}",
            "generate-lockfiles",
            "--resolve=clang-format",
        ]
    ).assert_success()
