Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

583 B
Raw Blame
import pytest


@pytest.mark.skip_debug()
def test_dangerously_authenticate_sets_helper(git_sandbox, git_credentials):
    username, password, host, protocol = git_credentials

    git_sandbox.git.dangerously_authenticate(
        username,
        password,
        host=host,
        protocol=protocol,
    )

    helper = git_sandbox.commands.run(
        "git config --global --get credential.helper"
    ).stdout.strip()
    configured_helper = git_sandbox.git.get_config("credential.helper", scope="global")
    assert helper == "store"
    assert configured_helper == "store"