8000 Infra: add tests by hugovk · Pull Request #2545 · python/peps · GitHub
[go: up one dir, main page]

Skip to content

Infra: add tests #2545

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Apr 26, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Infra: simplify to assert link is good (plus let docutils do its thing)
  • Loading branch information
hugovk committed Apr 23, 2022
commit eb644d949b6ad6ac55937b58c42b9a3c1250b9f0
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,7 @@
def test_add_source_link():
out = pep_footer._add_source_link(Path("pep-0008.txt"))

assert (
str(out) == "<paragraph>Source: "
'<reference refuri="https://github.com/python/peps/blob/main/pep-0008.txt">'
"https://github.com/python/peps/blob/main/pep-0008.txt</reference>"
"</paragraph>"
)
assert "https://github.com/python/peps/blob/main/pep-0008.txt" in str(out)


def test_add_commit_history_info():
Expand Down
0