Skip to content

Commit

Permalink
fixup! Fix an issue for projects with an at sign (@) in the path
Browse files Browse the repository at this point in the history
  • Loading branch information
jervi committed Mar 31, 2022
1 parent fc67bb9 commit d6c23ee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/unit/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,22 +104,22 @@ def test_split_ref_from_uri():
url = "https://github.com/sarugaku/plette.git"
assert utils.split_ref_from_uri(url) == (
"https://github.com/sarugaku/plette.git",
None
None,
)
url = "/Users/some.user@acme.com/dev/myproject"
assert utils.split_ref_from_uri(url) == (
"/Users/some.user@acme.com/dev/myproject",
None
None,
)
url = "https://user:password@github.com/sarugaku/plette.git"
assert utils.split_ref_from_uri(url) == (
"https://user:password@github.com/sarugaku/plette.git",
None
None,
)
url = "git+https://github.com/pypa/pipenv.git@master#egg=pipenv"
assert utils.split_ref_from_uri(url) == (
"git+https://github.com/pypa/pipenv.git#egg=pipenv",
"master"
"master",
)


Expand Down

0 comments on commit d6c23ee

Please sign in to comment.