Skip to content

Commit

Permalink
rerecord some test fixxtures, fix some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sckott committed Nov 9, 2024
1 parent 7332261 commit 2884a72
Show file tree
Hide file tree
Showing 5 changed files with 94 additions and 63 deletions.
10 changes: 5 additions & 5 deletions test/cassettes/test-licenses/test_licenses.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ interactions:
host:
- api.crossref.org
user-agent:
- python-httpx/0.27.2 habanero/1.2.6.91
- python-httpx/0.27.2 habanero/1.2.7.91
x-user-agent:
- python-httpx/0.27.2 habanero/1.2.6.91
- python-httpx/0.27.2 habanero/1.2.7.91
method: GET
uri: https://api.crossref.org/licenses?rows=2
uri: https://api.crossref.org/licenses?query=science&rows=2
response:
content: '{"status":"ok","message-type":"license-list","message-version":"1.0.0","message":{"total-results":17201,"items":[{"URL":"Http:\/\/creativecommons.org\/license\/by-nc\/4.0.","work-count":100},{"URL":"Http:\/\/creativecommons.org\/licenses\/by-nc\/4.0","work-count":1}]}}'
content: '{"status":"ok","message-type":"license-list","message-version":"1.0.0","message":{"total-results":1581,"items":[{"URL":"Http:\/\/creativecommons.org\/license\/by-nc\/4.0.","work-count":4},{"URL":"http:\/\/\/nv.pdpu.edu.ua\/Info\/Index\/be91efc0-7518-4106-b1df-7c0b3b9da77b","work-count":1}]}}'
headers:
access-control-allow-headers:
- X-Requested-With, Accept, Accept-Encoding, Accept-Charset, Accept-Language,
Expand All @@ -31,7 +31,7 @@ interactions:
content-type:
- application/json;charset=utf-8
date:
- Sun, 13 Oct 2024 22:26:27 GMT
- Sat, 09 Nov 2024 06:36:27 GMT
permissions-policy:
- interest-cohort=()
server:
Expand Down
20 changes: 10 additions & 10 deletions test/cassettes/test-licenses/test_licenses_query.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ interactions:
host:
- api.crossref.org
user-agent:
- python-httpx/0.27.2 habanero/1.2.6.91
- python-httpx/0.27.2 habanero/1.2.7.91
x-user-agent:
- python-httpx/0.27.2 habanero/1.2.6.91
- python-httpx/0.27.2 habanero/1.2.7.91
method: GET
uri: https://api.crossref.org/licenses?query=aps
response:
content: '{"status":"ok","message-type":"license-list","message-version":"1.0.0","message":{"total-results":106,"items":[{"URL":"http:\/\/creativecommons.org\/licenses\/BY\/4.0","work-count":2},{"URL":"http:\/\/creativecommons.org\/licenses\/by-nc-nd\/2.5\/es\/","work-count":1},{"URL":"http:\/\/creativecommons.org\/licenses\/by-nc-nd\/3.0","work-count":1},{"URL":"http:\/\/creativecommons.org\/licenses\/by-nc-nd\/3.0\/","work-count":13},{"URL":"http:\/\/creativecommons.org\/licenses\/by-nc-nd\/4.0","work-count":10},{"URL":"http:\/\/creativecommons.org\/licenses\/by-nc-nd\/4.0\/","work-count":82},{"URL":"http:\/\/creativecommons.org\/licenses\/by-nc-sa\/3.0\/","work-count":1},{"URL":"http:\/\/creativecommons.org\/licenses\/by-nc-sa\/4.0","work-count":11},{"URL":"http:\/\/creativecommons.org\/licenses\/by-nc\/3.0\/","work-count":9},{"URL":"http:\/\/creativecommons.org\/licenses\/by-nc\/4.0","work-count":105},{"URL":"http:\/\/creativecommons.org\/licenses\/by-nc\/4.0\/","work-count":34},{"URL":"http:\/\/creativecommons.org\/licenses\/by-sa\/2.5\/ar\/","work-count":1},{"URL":"http:\/\/creativecommons.org\/licenses\/by-sa\/4.0","work-count":6},{"URL":"http:\/\/creativecommons.org\/licenses\/by\/2.0","work-count":4},{"URL":"http:\/\/creativecommons.org\/licenses\/by\/2.0\/","work-count":1},{"URL":"http:\/\/creativecommons.org\/licenses\/by\/2.0\/uk\/legalcode","work-count":3},{"URL":"http:\/\/creativecommons.org\/licenses\/by\/3.0","work-count":1},{"URL":"http:\/\/creativecommons.org\/licenses\/by\/3.0\/","work-count":38},{"URL":"http:\/\/creativecommons.org\/licenses\/by\/4.0","work-count":26},{"URL":"http:\/\/creativecommons.org\/licenses\/by\/4.0\/","work-count":119}]}}'
content: '{"status":"ok","message-type":"license-list","message-version":"1.0.0","message":{"total-results":106,"items":[{"URL":"http:\/\/creativecommons.org\/licenses\/BY\/4.0","work-count":2},{"URL":"http:\/\/creativecommons.org\/licenses\/by-nc-nd\/2.5\/es\/","work-count":1},{"URL":"http:\/\/creativecommons.org\/licenses\/by-nc-nd\/3.0","work-count":1},{"URL":"http:\/\/creativecommons.org\/licenses\/by-nc-nd\/3.0\/","work-count":13},{"URL":"http:\/\/creativecommons.org\/licenses\/by-nc-nd\/4.0","work-count":10},{"URL":"http:\/\/creativecommons.org\/licenses\/by-nc-nd\/4.0\/","work-count":93},{"URL":"http:\/\/creativecommons.org\/licenses\/by-nc-sa\/3.0\/","work-count":1},{"URL":"http:\/\/creativecommons.org\/licenses\/by-nc-sa\/4.0","work-count":11},{"URL":"http:\/\/creativecommons.org\/licenses\/by-nc\/3.0\/","work-count":9},{"URL":"http:\/\/creativecommons.org\/licenses\/by-nc\/4.0","work-count":105},{"URL":"http:\/\/creativecommons.org\/licenses\/by-nc\/4.0\/","work-count":35},{"URL":"http:\/\/creativecommons.org\/licenses\/by-sa\/2.5\/ar\/","work-count":1},{"URL":"http:\/\/creativecommons.org\/licenses\/by-sa\/4.0","work-count":6},{"URL":"http:\/\/creativecommons.org\/licenses\/by\/2.0","work-count":4},{"URL":"http:\/\/creativecommons.org\/licenses\/by\/2.0\/","work-count":1},{"URL":"http:\/\/creativecommons.org\/licenses\/by\/2.0\/uk\/legalcode","work-count":3},{"URL":"http:\/\/creativecommons.org\/licenses\/by\/3.0","work-count":1},{"URL":"http:\/\/creativecommons.org\/licenses\/by\/3.0\/","work-count":38},{"URL":"http:\/\/creativecommons.org\/licenses\/by\/4.0","work-count":26},{"URL":"http:\/\/creativecommons.org\/licenses\/by\/4.0\/","work-count":120}]}}'
headers:
access-control-allow-headers:
- X-Requested-With, Accept, Accept-Encoding, Accept-Charset, Accept-Language,
Expand All @@ -31,11 +31,11 @@ interactions:
content-encoding:
- gzip
content-length:
- '301'
- '299'
content-type:
- application/json;charset=utf-8
date:
- Sun, 13 Oct 2024 22:26:28 GMT
- Sat, 09 Nov 2024 06:36:28 GMT
permissions-policy:
- interest-cohort=()
server:
Expand Down Expand Up @@ -66,14 +66,14 @@ interactions:
host:
- api.crossref.org
user-agent:
- python-httpx/0.27.2 habanero/1.2.6.91
- python-httpx/0.27.2 habanero/1.2.7.91
x-user-agent:
- python-httpx/0.27.2 habanero/1.2.6.91
- python-httpx/0.27.2 habanero/1.2.7.91
method: GET
uri: https://api.crossref.org/licenses?query=cellular%20oncology
response:
content: '{"status":"ok","message-type":"license-list","message-version":"1.0.0","message":{"total-results":452,"items":[{"URL":"http:\/\/academic.oup.com\/journals\/pages\/about_us\/legal\/notices","work-count":19},{"URL":"http:\/\/aspb.org\/publications\/aspb-journals\/open-articles","work-count":124},{"URL":"http:\/\/auo.asmepress.com\/list-9-6.html","work-count":1},{"URL":"http:\/\/creativecom","work-count":1},{"URL":"http:\/\/creativecommons.org\/","work-count":1},{"URL":"http:\/\/creativecommons.org\/Licenses\/by\/4.0\/","work-count":1},{"URL":"http:\/\/creativecommons.org\/licenses\/BY-NC-ND\/4.0","work-count":1},{"URL":"http:\/\/creativecommons.org\/licenses\/BY-SA\/4.0","work-count":1},{"URL":"http:\/\/creativecommons.org\/licenses\/BY\/4.0","work-count":5},{"URL":"http:\/\/creativecommons.org\/licenses\/by-n\/4.0\/","work-count":6},{"URL":"http:\/\/creativecommons.org\/licenses\/by-nc-nd\/2.5\/es\/","work-count":1},{"URL":"http:\/\/creativecommons.org\/licenses\/by-nc-nd\/2.5\/in","work-count":1},{"URL":"http:\/\/creativecommons.org\/licenses\/by-nc-nd\/3.0","work-count":356},{"URL":"http:\/\/creativecommons.org\/licenses\/by-nc-nd\/3.0\/","work-count":1847},{"URL":"http:\/\/creativecommons.org\/licenses\/by-nc-nd\/3.0\/es\/","work-count":3},{"URL":"http:\/\/creativecommons.org\/licenses\/by-nc-nd\/3.0\/igo\/","work-count":13},{"URL":"http:\/\/creativecommons.org\/licenses\/by-nc-nd\/4.0","work-count":1137},{"URL":"http:\/\/creativecommons.org\/licenses\/by-nc-nd\/4.0\/","work-count":41906},{"URL":"http:\/\/creativecommons.org\/licenses\/by-nc-nd\/4.0\/
http:\/\/creativecommons.org\/licenses\/by-nc-nd\/4.0\/","work-count":146},{"URL":"http:\/\/creativecommons.org\/licenses\/by-nc-nd\/4.0\/deed.en_GB","work-count":1}]}}'
content: '{"status":"ok","message-type":"license-list","message-version":"1.0.0","message":{"total-results":453,"items":[{"URL":"http:\/\/academic.oup.com\/journals\/pages\/about_us\/legal\/notices","work-count":19},{"URL":"http:\/\/aspb.org\/publications\/aspb-journals\/open-articles","work-count":124},{"URL":"http:\/\/auo.asmepress.com\/list-9-6.html","work-count":1},{"URL":"http:\/\/creativecom","work-count":1},{"URL":"http:\/\/creativecommons.org\/","work-count":1},{"URL":"http:\/\/creativecommons.org\/Licenses\/by\/4.0\/","work-count":1},{"URL":"http:\/\/creativecommons.org\/licenses\/BY-NC-ND\/4.0","work-count":1},{"URL":"http:\/\/creativecommons.org\/licenses\/BY-SA\/4.0","work-count":1},{"URL":"http:\/\/creativecommons.org\/licenses\/BY\/4.0","work-count":5},{"URL":"http:\/\/creativecommons.org\/licenses\/by-n\/4.0\/","work-count":6},{"URL":"http:\/\/creativecommons.org\/licenses\/by-nc-nd\/2.5\/es\/","work-count":1},{"URL":"http:\/\/creativecommons.org\/licenses\/by-nc-nd\/2.5\/in","work-count":1},{"URL":"http:\/\/creativecommons.org\/licenses\/by-nc-nd\/3.0","work-count":357},{"URL":"http:\/\/creativecommons.org\/licenses\/by-nc-nd\/3.0\/","work-count":1847},{"URL":"http:\/\/creativecommons.org\/licenses\/by-nc-nd\/3.0\/es\/","work-count":3},{"URL":"http:\/\/creativecommons.org\/licenses\/by-nc-nd\/3.0\/igo\/","work-count":13},{"URL":"http:\/\/creativecommons.org\/licenses\/by-nc-nd\/4.0","work-count":1140},{"URL":"http:\/\/creativecommons.org\/licenses\/by-nc-nd\/4.0\/","work-count":42209},{"URL":"http:\/\/creativecommons.org\/licenses\/by-nc-nd\/4.0\/
http:\/\/creativecommons.org\/licenses\/by-nc-nd\/4.0\/","work-count":148},{"URL":"http:\/\/creativecommons.org\/licenses\/by-nc-nd\/4.0\/deed.en_GB","work-count":2}]}}'
headers:
access-control-allow-headers:
- X-Requested-With, Accept, Accept-Encoding, Accept-Charset, Accept-Language,
Expand All @@ -91,7 +91,7 @@ interactions:
content-type:
- application/json;charset=utf-8
date:
- Sun, 13 Oct 2024 22:26:28 GMT
- Sat, 09 Nov 2024 06:36:30 GMT
permissions-policy:
- interest-cohort=()
server:
Expand Down
Loading

0 comments on commit 2884a72

Please sign in to comment.