|
12 | 12 | def test_validate_doi() -> None: |
13 | 13 | data = [ |
14 | 14 | ("10.1063/1.5081715", |
15 | | - "http://aip.scitation.org/doi/10.1063/1.5081715"), |
| 15 | + "https://pubs.aip.org/jcp/article/150/7/074102/197572/Exact-two-component-equation-of-motion-coupled"), # noqa: E501 |
16 | 16 | ("10.1007%2FBF01451751", |
17 | | - "http://link.springer.com/10.1007/BF01451751"), |
| 17 | + "http://link.springer.com/10.1007/BF01451751"), |
18 | 18 | ("10.1103/PhysRevLett.49.57", |
19 | | - "https://link.aps.org/doi/10.1103/PhysRevLett.49.57"), |
| 19 | + "https://link.aps.org/doi/10.1103/PhysRevLett.49.57"), |
20 | 20 | ("10.1080/14786442408634457", |
21 | | - "https://www.tandfonline.com/doi/full/10.1080/14786442408634457"), |
22 | | - ("10.1021/jp003647e", "https://pubs.acs.org/doi/10.1021/jp003647e"), |
| 21 | + "https://www.tandfonline.com/doi/full/10.1080/14786442408634457"), |
| 22 | + ("10.1021/jp003647e", |
| 23 | + "https://pubs.acs.org/doi/10.1021/jp003647e"), |
23 | 24 | ("10.1016/S0009-2614(97)04014-1", |
24 | | - "https://linkinghub.elsevier.com/retrieve/pii/S0009261497040141"), |
| 25 | + "https://linkinghub.elsevier.com/retrieve/pii/S0009261497040141"), |
25 | 26 | ] |
26 | 27 | for doi, url in data: |
27 | 28 | assert url == validate_doi(doi) |
@@ -57,21 +58,21 @@ def test_find_doi_in_line() -> None: |
57 | 58 | ("/scitation.org/doi/10.1063/1.881498?234saf=34", "10.1063/1.881498"), |
58 | 59 | ("/scitation.org/doi/10.1063/1.88149 8?234saf=34", "10.1063/1.88149"), |
59 | 60 | ("/scitation.org/doi/10.1063/1.uniau12?as=234", |
60 | | - "10.1063/1.uniau12"), |
| 61 | + "10.1063/1.uniau12"), |
61 | 62 | ("https://doi.org/10.1093/analys/anw053", "10.1093/analys/anw053"), |
62 | 63 | ("http://.scitation.org/doi/10.1063/1.mart(88)1498?asdfwer", |
63 | | - "10.1063/1.mart(88)1498"), |
| 64 | + "10.1063/1.mart(88)1498"), |
64 | 65 | ("@ibook{doi:10.1002/9780470125915.ch2,", "10.1002/9780470125915.ch2"), |
65 | 66 | ('<rdf:Description rdf:about="" xmlns:dc="http://purl.org/dc/elements' |
66 | 67 | '.1/"><dc:format>application/pdf</dc:format><dc:identifier>' |
67 | 68 | "doi:10.1063/1.5079474</dc:identifier></rdf:Description>", |
68 | | - "10.1063/1.5079474"), |
| 69 | + "10.1063/1.5079474"), |
69 | 70 | ("<(DOI:10.1002/9780470915.CH2)/S/URI,", "10.1002/9780470915.CH2"), |
70 | 71 | ("URL<(DOI:10.1002/9780470125915.CH2,", "10.1002/9780470125915.CH2"), |
71 | 72 | (r"A<</S/URI/URI(https://doi.org/10.1016/j.comptc.2018.10.004)>>/" |
72 | 73 | r"Border[0 0 0]/M(D:20181022082356+0530)/Rect[147.40158 594.36926" |
73 | 74 | r"347.24957 605.36926]/Subtype/Link/Type/A", |
74 | | - "10.1016/j.comptc.2018.10.004"), |
| 75 | + "10.1016/j.comptc.2018.10.004"), |
75 | 76 | ("doi(10.1038/s41535-018-0103-6;)", "10.1038/s41535-018-0103-6"), |
76 | 77 | ] |
77 | 78 | for url, doi in test_data: |
|
0 commit comments