aboutsummaryrefslogtreecommitdiff
path: root/tests/fixtures/wiktionary-404.json
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-04-28 18:07:00 -0500
committerCraig Jennings <c@cjennings.net>2026-04-28 18:07:00 -0500
commit166d3bde50718eacd51c75cb82246988d9ec0151 (patch)
tree5d7161848ba74465db50058fb54a1f944b99730a /tests/fixtures/wiktionary-404.json
parent1e2da6b1a463492ada31ce473414289e761519ca (diff)
downloadgloss-166d3bde50718eacd51c75cb82246988d9ec0151.tar.gz
gloss-166d3bde50718eacd51c75cb82246988d9ec0151.zip
chore: capture Wiktionary REST fixtures for replay
Save raw response bodies from the Wiktionary REST endpoint under tests/fixtures/. The fetch layer can replay them with a cl-letf on url-retrieve-synchronously instead of hitting the network in tests. The five fixtures cover the cases that matter for the parser. anaphora is the simple single-sense English entry. SBIR is an acronym with multiple senses. API is highly polysemous and multi-language (en, fr, id, la, pt). hapax-legomenon is the multi-word case, so it exercises URL-encoding for the space. The 404 fixture captures the JSON error body Wiktionary returns when a term isn't there.
Diffstat (limited to 'tests/fixtures/wiktionary-404.json')
-rw-r--r--tests/fixtures/wiktionary-404.json1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/fixtures/wiktionary-404.json b/tests/fixtures/wiktionary-404.json
new file mode 100644
index 0000000..3b52c5c
--- /dev/null
+++ b/tests/fixtures/wiktionary-404.json
@@ -0,0 +1 @@
+{"status":404,"type":"Internal error"} \ No newline at end of file