summaryrefslogtreecommitdiff
path: root/tests/primer
diff options
context:
space:
mode:
Diffstat (limited to 'tests/primer')
-rw-r--r--tests/primer/packages_to_prime.json6
-rw-r--r--tests/primer/primer_tool.py6
2 files changed, 7 insertions, 5 deletions
diff --git a/tests/primer/packages_to_prime.json b/tests/primer/packages_to_prime.json
index a79c7d439..06e456eff 100644
--- a/tests/primer/packages_to_prime.json
+++ b/tests/primer/packages_to_prime.json
@@ -19,12 +19,12 @@
"branch": "main",
"directories": ["pandas"],
"pylint_additional_args": ["--ignore-patterns=\"test_"],
- "url": "https://github.com/pandas-dev/pandas.git"
+ "url": "https://github.com/pandas-dev/pandas"
},
"psycopg": {
"branch": "master",
"directories": ["psycopg/psycopg"],
- "url": "https://github.com/psycopg/psycopg.git"
+ "url": "https://github.com/psycopg/psycopg"
},
"pygame": {
"branch": "main",
@@ -39,6 +39,6 @@
"sentry": {
"branch": "master",
"directories": ["src/sentry"],
- "url": "https://github.com/getsentry/sentry.git"
+ "url": "https://github.com/getsentry/sentry"
}
}
diff --git a/tests/primer/primer_tool.py b/tests/primer/primer_tool.py
index 8fdac6817..240ec3c30 100644
--- a/tests/primer/primer_tool.py
+++ b/tests/primer/primer_tool.py
@@ -240,8 +240,10 @@ class Primer:
filepath = str(message["path"]).replace(
str(package_data.clone_directory), ""
)
- without_suffix = package_data.url.rsplit(".git")[0]
- comment += f"{without_suffix}/blob/{package_data.branch}{filepath}#L{message['line']}\n"
+ assert not package_data.url.endswith(
+ ".git"
+ ), "You don't need the .git at the end of the github url."
+ comment += f"{package_data.url}/blob/{package_data.branch}{filepath}#L{message['line']}\n"
count += 1
print(message)
if missing_messages: