Skip to content

Commit

Permalink
Cdot now implements get_alignments_for_region
Browse files Browse the repository at this point in the history
  • Loading branch information
ccaitlingo committed Jul 5, 2023
1 parent 47b8f8d commit 54ba34a
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 0 deletions.
46 changes: 46 additions & 0 deletions tests/cassettes/test_cdot_alignments_for_region_e.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
interactions:
- request:
body: null
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
User-Agent:
- python-requests/2.31.0
method: GET
uri: https://cdot.cc/transcripts/region/NC_000007.13/splign/0/50
response:
body:
string: '{"results": []}'
headers:
Access-Control-Allow-Origin:
- http://203.101.229.44
Cache-Control:
- max-age=86400
Connection:
- keep-alive
Content-Length:
- '15'
Content-Type:
- application/json
Cross-Origin-Opener-Policy:
- same-origin
Date:
- Wed, 05 Jul 2023 17:05:31 GMT
Expires:
- Thu, 06 Jul 2023 17:05:31 GMT
Referrer-Policy:
- same-origin
Server:
- gunicorn
X-Content-Type-Options:
- nosniff
X-Frame-Options:
- DENY
status:
code: 200
message: OK
version: 1
41 changes: 41 additions & 0 deletions tests/cassettes/test_cdot_alignments_for_region_ne.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
interactions:
- request:
body: null
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
User-Agent:
- python-requests/2.31.0
method: GET
uri: https://cdot.cc/transcripts/region/fake/splign/0/50
response:
body:
string: "\n<!doctype html>\n<html lang=\"en\">\n<head>\n <title>Server Error
(500)</title>\n</head>\n<body>\n <h1>Server Error (500)</h1><p></p>\n</body>\n</html>\n"
headers:
Connection:
- keep-alive
Content-Length:
- '145'
Content-Type:
- text/html
Cross-Origin-Opener-Policy:
- same-origin
Date:
- Wed, 05 Jul 2023 17:03:03 GMT
Referrer-Policy:
- same-origin
Server:
- gunicorn
X-Content-Type-Options:
- nosniff
X-Frame-Options:
- DENY
status:
code: 500
message: Internal Server Error
version: 1

0 comments on commit 54ba34a

Please sign in to comment.