Repository navigation
tests: the batch command's tests in files named by command - #268
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
tests/batch/files_test.pyheld the tests of the commandessapps-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:cli_reduce_test.pyreducewith templates and table files; the refusals of the command linecli_files_test.pyfilescommand, and afiles.csvin errorcli_look_test.pyspecs,sources,rows,batches,show,--json,template,exportcli_act_test.pyreduce --sourcewith a range,offered,take,remove,stop,followcli_follow_test.pyfollow, signals,--stepstemplates_test.pyload_templateof a YAML fileA 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/batchare 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