MCPcopy
hub / github.com/pex-tool/pex / test_git

Function test_git

tests/test_vendor.py:23–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21
22
23def test_git():
24 # type: () -> None
25 vendor_spec = VendorSpec.git(
26 repo="https://github.com/foo.git", commit="da39a3ee", project_name="bar"
27 )
28 assert "bar" == vendor_spec.key
29 assert "bar @ git+https://github.com/foo.git@da39a3ee" == vendor_spec.requirement
30 assert "bar @ git+https://github.com/foo.git@da39a3ee" == vendor_spec.prepare()
31
32
33def test_git_prep_command(tmpdir):

Callers

nothing calls this directly

Calls 1

prepareMethod · 0.80

Tested by

no test coverage detected