<feed xmlns='http://www.w3.org/2005/Atom'>
<title>dotemacs/tests/test-transcription-api-key.el, branch main</title>
<subtitle>My Emacs configuration
</subtitle>
<id>https://git.cjennings.net/dotemacs/atom?h=main</id>
<link rel='self' href='https://git.cjennings.net/dotemacs/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/dotemacs/'/>
<updated>2026-04-19T12:06:45+00:00</updated>
<entry>
<title>refactor(transcription): consolidate backends into descriptor alist</title>
<updated>2026-04-19T12:06:45+00:00</updated>
<author>
<name>Craig Jennings</name>
<email>c@cjennings.net</email>
</author>
<published>2026-04-19T12:06:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/dotemacs/commit/?id=85d9127ea6a5cd624dd4567618ce87b12e491e8c'/>
<id>urn:sha1:85d9127ea6a5cd624dd4567618ce87b12e491e8c</id>
<content type='text'>
Introduce cj/--transcription-backends alist mapping each backend to
(:script :auth-host :env-var). Replace:
- two near-identical cj/--get-{openai,assemblyai}-api-key functions with
  a single parameterized cj/--auth-source-password helper
- the pcase in cj/--transcription-script-path with an alist lookup
- the pcase block in cj/--start-transcription-process that assembled
  the API-key env var with an alist-driven assembly

Adding a new backend is now a single line in the alist. The existing
tests plus retargeted API-key tests (now 10, covering the parameterized
helper and the descriptor data) verify no behavior change.
</content>
</entry>
<entry>
<title>test(transcription): add characterization tests for API-key retrieval</title>
<updated>2026-04-19T12:04:22+00:00</updated>
<author>
<name>Craig Jennings</name>
<email>c@cjennings.net</email>
</author>
<published>2026-04-19T12:04:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/dotemacs/commit/?id=cb9fe91fbb35aef0a9de578a66e5f59df964321c'/>
<id>urn:sha1:cb9fe91fbb35aef0a9de578a66e5f59df964321c</id>
<content type='text'>
8 tests pinning down current behavior of cj/--get-openai-api-key and
cj/--get-assemblyai-api-key (host query, string vs function secret,
missing-entry → nil). Baseline for upcoming consolidation into a
single parameterized helper.
</content>
</entry>
</feed>
