Files
e2b-dev--e2b/packages/python-sdk/tests/shared/git/test_dangerously_authenticate.py
T
2026-07-13 12:47:58 +08:00

21 lines
583 B
Python

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"