Skip to content

Commit

Permalink
updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mfenner committed Mar 26, 2024
1 parent 44de427 commit eb2cd21
Show file tree
Hide file tree
Showing 50 changed files with 168,673 additions and 843,898 deletions.
182 changes: 91 additions & 91 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ pytest = "^7.2"
pytest-cov = "^4.1"
pytest-asyncio = "^0.21"
pytest-recording = "^0.13"
vcrpy = ">=6.0"
vcrpy = "^5.1"
ruff = "^0.3.0"

[build-system]
Expand Down
273,334 changes: 1,557 additions & 271,777 deletions tests/cassettes/test-blogs/test_extract_all_blogs.yaml

Large diffs are not rendered by default.

1,251 changes: 10 additions & 1,241 deletions tests/cassettes/test-blogs/test_extract_single_blog_atom_feed.yaml

Large diffs are not rendered by default.

39,923 changes: 8 additions & 39,915 deletions tests/cassettes/test-blogs/test_extract_single_blog_json_feed.yaml

Large diffs are not rendered by default.

18,584 changes: 8 additions & 18,576 deletions tests/cassettes/test-blogs/test_extract_single_blog_rss_feed.yaml

Large diffs are not rendered by default.

86 changes: 42 additions & 44 deletions tests/cassettes/test-blogs/test_find_feed_blogger.yaml

Large diffs are not rendered by default.

401 changes: 203 additions & 198 deletions tests/cassettes/test-blogs/test_find_feed_ghost.yaml

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions tests/cassettes/test-blogs/test_find_feed_hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ interactions:
accept:
- '*/*'
accept-encoding:
- gzip, deflate
- gzip, deflate, br
connection:
- keep-alive
host:
Expand Down Expand Up @@ -38,7 +38,7 @@ interactions:
Content-Type:
- text/html; charset=iso-8859-1
Date:
- Fri, 23 Feb 2024 15:44:25 GMT
- Tue, 26 Mar 2024 21:57:37 GMT
Keep-Alive:
- timeout=2, max=1000
Location:
Expand All @@ -55,7 +55,7 @@ interactions:
accept:
- '*/*'
accept-encoding:
- gzip, deflate
- gzip, deflate, br
connection:
- keep-alive
host:
Expand Down Expand Up @@ -771,15 +771,15 @@ interactions:
Connection:
- Keep-Alive
Content-Encoding:
- gzip
- br
Content-Length:
- '11329'
- '10453'
Content-Type:
- text/html
Date:
- Fri, 23 Feb 2024 15:44:25 GMT
- Tue, 26 Mar 2024 21:57:37 GMT
ETag:
- '"dbaa-60ea9201b0eef-gzip"'
- '"dbaa-60ea9201b0eef-br"'
Keep-Alive:
- timeout=2, max=999
Last-Modified:
Expand Down
40 changes: 21 additions & 19 deletions tests/cassettes/test-blogs/test_find_feed_jekyll.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ interactions:
accept:
- '*/*'
accept-encoding:
- gzip, deflate
- gzip, deflate, br
connection:
- keep-alive
host:
Expand Down Expand Up @@ -108,7 +108,16 @@ interactions:
\ <a href=\"/pictures/\" class=\"author-social\"><i class=\"fas fa-fw fa-images\"></i>
Pictures for Re-Use</a>\n</div>\n\n\n </div>\n\n \n <div id=\"index\">\n
\ <h3><a href=\"https://eve.gd/posts/\">Recent Posts</a></h3>\n \n <article>\n
\ \n <h2><a href=\"https://eve.gd/2024/02/21/betting-against-the-future/\"
\ \n <h2><a href=\"https://eve.gd/2024/03/19/the-problem-for-ref-2029/\"
title=\"The problem for REF 2029\">The problem for REF 2029</a></h2>\n <p>The
Research Excellence Framework is the UK system for rewarding unhypothecated
research funding from the government to universities. It gives a block of fun...</p>\n
\ \n </article>\n \n <article>\n \n <h2><a href=\"https://eve.gd/2024/02/29/preservation-as-a-memento-mori-and-matter-of-ethics/\"
title=\"Preservation as a Memento Mori and Matter of Ethics\">Preservation as
a Memento Mori and Matter of Ethics</a></h2>\n <p>When training PhD students
and other postgraduates, we often have a section on publication. It covers the
basic background process, the rudiments of peer rev...</p>\n \n </article>\n
\ \n <article>\n \n <h2><a href=\"https://eve.gd/2024/02/21/betting-against-the-future/\"
title=\"Betting against the future\">Betting against the future</a></h2>\n <p>I
am tired of medical decisions with a trade-off. On a regular basis I am presented
with decisions that have deferred negative consequences in order to fix s...</p>\n
Expand All @@ -133,16 +142,9 @@ interactions:
in review\">My 2023 year in review</a></h2>\n <p>2023 continued to pose
the all-important question: just how many health disasters can I endure? This
year, I started haemodialysis as my kidneys entered the ...</p>\n \n </article>\n
\ \n <article>\n \n <h2><a href=\"https://eve.gd/2023/12/07/land-of-hope-and-tolerance/\"
title=\"Land of hope and tolerance\">Land of hope and tolerance</a></h2>\n <p>A
letter to the Editor of the Guardian, who declined to publish it.\n</p>\n \n
\ </article>\n \n <article>\n \n <h2><a href=\"https://eve.gd/2023/11/09/blocking-my-crawl/\"
title=\"Blocking My Crawl\">Blocking My Crawl</a></h2>\n <p>My day job
involves quite a lot of crawling lists of websites to determine statistics about
Crossref members and their behaviours. A good example is somethin...</p>\n \n
\ </article>\n \n </div><!-- /#index -->\n</div><!-- /#main -->\n\n<div
class=\"footer-wrap\">\n <footer>\n \n\n<span>&copy; 2024 Martin Paul Eve.
Unless otherwise noted, all material on this site is licensed under a <a href=\"http://creativecommons.org/licenses/by/4.0/deed.en_US\">Creative
\ \n </div><!-- /#index -->\n</div><!-- /#main -->\n\n<div class=\"footer-wrap\">\n
\ <footer>\n \n\n<span>&copy; 2024 Martin Paul Eve. Unless otherwise noted,
all material on this site is licensed under a <a href=\"http://creativecommons.org/licenses/by/4.0/deed.en_US\">Creative
Commons Attribution 4.0 License</a>. <a href=\"http://thenounproject.com/term/student/63368/\">Favicon
by Joseph Wilson under a CC BY 3.0 license</a>. Powered by <a href=\"http://jekyllrb.com\"
rel=\"nofollow\">Jekyll</a> using the <a href=\"http://mademistakes.com/minimal-mistakes/\"
Expand All @@ -158,25 +160,25 @@ interactions:
Accept-Ranges:
- bytes
Age:
- '35375'
- '56106'
Connection:
- keep-alive
Content-Length:
- '11733'
- '11921'
Content-Type:
- text/html
Date:
- Fri, 23 Feb 2024 15:44:27 GMT
- Tue, 26 Mar 2024 06:22:33 GMT
ETag:
- '"2b4314276ae7cc2f6f8d6e4f5be364ae"'
- '"2b99d607915c4a174d12e5f2e3544eae"'
Last-Modified:
- Wed, 21 Feb 2024 10:22:33 GMT
- Tue, 19 Mar 2024 17:21:44 GMT
Server:
- AmazonS3
Via:
- 1.1 864867c878801fa3f01f9149934772e8.cloudfront.net (CloudFront)
- 1.1 27f45b37d8058458a0fcf5f41e20288a.cloudfront.net (CloudFront)
X-Amz-Cf-Id:
- vnVS-H6H6n1Op9NLVoTERXjNHXVPEwBARdoSJxENESQ4H3o_578ryg==
- OkwKU_M7oohw3nHdc1flxvQ0Vs41zAhrqIneNEenOyfiTS3XtulCXw==
X-Amz-Cf-Pop:
- DUS51-P4
X-Cache:
Expand Down
52 changes: 32 additions & 20 deletions tests/cassettes/test-blogs/test_find_feed_quarto.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ interactions:
accept:
- '*/*'
accept-encoding:
- gzip, deflate
- gzip, deflate, br
connection:
- keep-alive
host:
Expand All @@ -17,7 +17,7 @@ interactions:
response:
content: "<!DOCTYPE html>\n<html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en\"
xml:lang=\"en\"><head>\n\n<meta charset=\"utf-8\">\n<meta name=\"generator\"
content=\"quarto-1.4.529\">\n\n<meta name=\"viewport\" content=\"width=device-width,
content=\"quarto-1.4.551\">\n\n<meta name=\"viewport\" content=\"width=device-width,
initial-scale=1.0, user-scalable=yes\">\n\n<meta name=\"author\" content=\"Andrew
Heiss\">\n\n<title>Andrew Heiss</title>\n<style>\ncode{white-space: pre-wrap;}\nspan.smallcaps{font-variant:
small-caps;}\ndiv.columns{display: flex; gap: min(4vw, 1.5em);}\ndiv.column{flex:
Expand Down Expand Up @@ -182,21 +182,31 @@ interactions:
\ button.removeAttribute(\"data-bs-placement\");\n }\n button.setAttribute(\"title\",
currentTitle);\n button.classList.remove('code-copy-button-checked');\n
\ }, 1000);\n // clear code selection\n e.clearSelection();\n });\n
\ function tippyHover(el, contentFn, onTriggerFn, onUntriggerFn) {\n const
config = {\n allowHTML: true,\n maxWidth: 500,\n delay: 100,\n
\ arrow: false,\n appendTo: function(el) {\n return el.parentElement;\n
\ },\n interactive: true,\n interactiveBorder: 10,\n theme:
'quarto',\n placement: 'bottom-start',\n };\n if (contentFn) {\n
\ config.content = contentFn;\n }\n if (onTriggerFn) {\n config.onTrigger
= onTriggerFn;\n }\n if (onUntriggerFn) {\n config.onUntrigger =
onUntriggerFn;\n }\n window.tippy(el, config); \n }\n const noterefs
= window.document.querySelectorAll('a[role=\"doc-noteref\"]');\n for (var i=0;
i<noterefs.length; i++) {\n const ref = noterefs[i];\n tippyHover(ref,
\ var localhostRegex = new RegExp(/^(?:http|https):\\/\\/localhost\\:?[0-9]*\\//);\n
\ var mailtoRegex = new RegExp(/^mailto:/);\n var filterRegex = new RegExp(\"https:\\/\\/www\\.andrewheiss\\.com\");\n
\ var isInternal = (href) => {\n return filterRegex.test(href) || localhostRegex.test(href)
|| mailtoRegex.test(href);\n }\n // Inspect non-navigation links and adorn
them if external\n \tvar links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool)');\n
\ for (var i=0; i<links.length; i++) {\n const link = links[i];\n if
(!isInternal(link.href)) {\n // undo the damage that might have been
done by quarto-nav.js in the case of\n // links that we want to consider
external\n if (link.dataset.originalHref !== undefined) {\n link.href
= link.dataset.originalHref;\n }\n }\n }\n function tippyHover(el,
contentFn, onTriggerFn, onUntriggerFn) {\n const config = {\n allowHTML:
true,\n maxWidth: 500,\n delay: 100,\n arrow: false,\n appendTo:
function(el) {\n return el.parentElement;\n },\n interactive:
true,\n interactiveBorder: 10,\n theme: 'quarto',\n placement:
'bottom-start',\n };\n if (contentFn) {\n config.content = contentFn;\n
\ }\n if (onTriggerFn) {\n config.onTrigger = onTriggerFn;\n }\n
\ if (onUntriggerFn) {\n config.onUntrigger = onUntriggerFn;\n }\n
\ window.tippy(el, config); \n }\n const noterefs = window.document.querySelectorAll('a[role=\"doc-noteref\"]');\n
\ for (var i=0; i<noterefs.length; i++) {\n const ref = noterefs[i];\n tippyHover(ref,
function() {\n // use id or data attribute instead here\n let href
= ref.getAttribute('data-footnote-href') || ref.getAttribute('href');\n try
{ href = new URL(href).hash; } catch {}\n const id = href.replace(/^#\\/?/,
\"\");\n const note = window.document.getElementById(id);\n return
note.innerHTML;\n });\n }\n const xrefs = window.document.querySelectorAll('a.quarto-xref');\n
\"\");\n const note = window.document.getElementById(id);\n if (note)
{\n return note.innerHTML;\n } else {\n return \"\";\n }\n
\ });\n }\n const xrefs = window.document.querySelectorAll('a.quarto-xref');\n
\ const processXRef = (id, note) => {\n // Strip column container classes\n
\ const stripColumnClz = (el) => {\n el.classList.remove(\"page-full\",
\"page-columns\");\n if (el.children) {\n for (const child of el.children)
Expand All @@ -214,9 +224,11 @@ interactions:
\ }\n } else {\n // Remove any anchor links if they are present\n
\ const anchorLink = note.querySelector('a.anchorjs-link');\n if (anchorLink)
{\n anchorLink.remove();\n }\n if (window.Quarto?.typesetMath)
{\n window.Quarto.typesetMath(note);\n }\n return note.innerHTML;\n
\ }\n }\n for (var i=0; i<xrefs.length; i++) {\n const xref = xrefs[i];\n
\ tippyHover(xref, undefined, function(instance) {\n instance.disable();\n
{\n window.Quarto.typesetMath(note);\n }\n // TODO in 1.5,
we should make sure this works without a callout special case\n if (note.classList.contains(\"callout\"))
{\n return note.outerHTML;\n } else {\n return note.innerHTML;\n
\ }\n }\n }\n for (var i=0; i<xrefs.length; i++) {\n const xref
= xrefs[i];\n tippyHover(xref, undefined, function(instance) {\n instance.disable();\n
\ let url = xref.getAttribute('href');\n let hash = undefined; \n if
(url.startsWith('#')) {\n hash = url;\n } else {\n try {
hash = new URL(url).hash; } catch {}\n }\n if (hash) {\n const
Expand Down Expand Up @@ -338,11 +350,11 @@ interactions:
Content-Type:
- text/html; charset=utf-8
Date:
- Fri, 23 Feb 2024 15:44:26 GMT
- Tue, 26 Mar 2024 21:57:37 GMT
Etag:
- '"s7wk9lkj0"'
- '"sayk3jlih"'
Last-Modified:
- Sat, 27 Jan 2024 04:24:57 GMT
- Tue, 26 Mar 2024 13:57:19 GMT
Server:
- Caddy
Transfer-Encoding:
Expand Down
Loading

0 comments on commit eb2cd21

Please sign in to comment.