Skip to content

Commit

Permalink
debug print for gitinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
fkuep committed Nov 30, 2022
1 parent e8503c8 commit f25064f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/scriv/gitinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ def get_github_repo() -> Optional[str]:
github_repos = set()
for url in urls:
m = re.search(r"github.com[:/]([^/]+/.+)\.git", url)
print("debug: urls is:", url, "", sep="\n")
if m:
github_repos.add(m[1])
if len(github_repos) == 1:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_literals.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def test_find_yaml_literal(name, value, temp_dir):
assert find_literal("foo.yml", name) == value


#def test_find_yaml_literal_fail_if_unavailable(monkeypatch):
# def test_find_yaml_literal_fail_if_unavailable(monkeypatch):
# monkeypatch.setattr(scriv.literals, "yaml", None)
# with pytest.raises(Exception, match="Can't read .+ without YAML support"):
# find_literal("foo.yml", "fail")

0 comments on commit f25064f

Please sign in to comment.