()
| 21 | |
| 22 | |
| 23 | def 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 | |
| 33 | def test_git_prep_command(tmpdir): |