Skip to content

tests: the batch command's tests in files named by command - #268

Merged
SimonHeybrock merged 2 commits into
mainfrom
259-split-command-tests
Nov 23, 2026
Merged

SimonHeybrock merged 2 commits into
mainfrom
259-split-command-tests

Conversation

@SimonHeybrock

Copy link
Copy Markdown
Member

tests/batch/files_test.py held the tests of the command essapps-batch (about 1,950 lines) under a name from the time when the command only read table files. They move to files named by command:

File Tests What
cli_reduce_test.py 46 reduce with templates and table files; the refusals of the command line
cli_files_test.py 6 the files command, and a files.csv in error
cli_look_test.py 17 specs, sources, rows, batches, show, --json, template, export
cli_act_test.py 10 reduce --source with a range, offered, take, remove, stop, follow
cli_follow_test.py 7 the loop of follow, signals, --steps
templates_test.py +3 load_template of a YAML file

A test goes with the command that its name is about. Fixtures and helpers that several files use moved to conftest.py.

No test changed. Checked three ways: the collected test names of tests/batch are the same 870 before and after; a script compared the source of each of the 89 tests, decorators included, with the old file and found no difference; the suite passes.

🤖 Generated with Claude Code

SimonHeybrock and others added 2 commits November 23, 2026 11:46
files_test.py held the tests of essapps-batch under a name from the time
when the command only read table files. The tests move, unchanged, to
cli_reduce_test.py, cli_files_test.py, cli_look_test.py, cli_act_test.py
and cli_follow_test.py. The three tests of load_template go to
templates_test.py. A test that calls two commands goes with the one it
calls last. Fixtures and helpers that more than one file uses move to
conftest.py.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The tests of the template of a spec and of a group file, and the test of
the rows that become a table, go to cli_look_test.py. The test of the
table of files that a later command opens goes to cli_files_test.py.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@SimonHeybrock SimonHeybrock self-assigned this Nov 23, 2026
@SimonHeybrock
SimonHeybrock merged commit 9eccc6d into main Nov 23, 2026
2 checks passed
@SimonHeybrock
SimonHeybrock deleted the 259-split-command-tests branch November 23, 2026 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant