We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0f44a5 commit 86a5fffCopy full SHA for 86a5fff
jsonschema/tests/_helpers.py
@@ -1,5 +1,29 @@
1
+from urllib.parse import urljoin
2
+
3
4
+def issues_url(organization, repository):
5
+ return urljoin(
6
+ urljoin(
7
+ urljoin("https://github.com", organization),
8
+ repository,
9
+ ),
10
+ "issues",
11
+ )
12
13
14
+ISSUES_URL = issues_url("python-jsonschema", "jsonschema")
15
+TEST_SUITE_ISSUES_URL = issues_url("json-schema-org", "JSON-Schema-Test-Suite")
16
17
18
def bug(issue=None):
19
message = "A known bug."
20
if issue is not None:
- message += " See issue #{issue}.".format(issue=issue)
21
+ message += f" See {urljoin(ISSUES_URL, str(issue))}."
22
return message
23
24
25
+def test_suite_bug(issue):
26
+ return (
27
+ "A known test suite bug. "
28
+ f"See {urljoin(TEST_SUITE_ISSUES_URL, str(issue))}."
29
0 commit comments