Skip to content

Commit 8297b1e

Browse files
Nadav Ben AmiNadav Ben Ami
authored andcommitted
adding SKEAPED_URLS list
1 parent e4dc7f3 commit 8297b1e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_links.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
URL_REGEX = r"https?:\/\/[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b[-a-zA-Z0-9@:%_\+.~#?&//=]*"
1313
# urls come in `[title](url)`
1414
URL_IN_MARKDOWN_REGEX = re.compile(r"(?<=\]\()%s(?=\s*\))" % URL_REGEX)
15+
SKEAPED_URLS = [
16+
"https://journals.aps.org/rmp/abstract/10.1103/RevModPhys.69.607", # From date: 19.12.24, notebook: hamiltonian_simulation_guide.ipynb
17+
]
1518

1619

1720
def test_links() -> None:
@@ -34,6 +37,8 @@ def iterate_links_from_notebook(filename: str) -> Iterable[tuple[int, str]]:
3437

3538

3639
def _test_single_url(url: str, retry: int = 3) -> bool:
40+
if url in SKEAPED_URLS:
41+
return True
3742
if retry == 0:
3843
return False
3944

0 commit comments

Comments
 (0)