Commit Graph

5 Commits

Author SHA1 Message Date
Paul O'Leary McCann
a060ed21e8 Add output arg for assemble and pretrain
Assemble and pretrain require an output argument. This commit adds
assemble testing, but not pretrain, as that requires an actual trainable
component, which is not currently in the test config.
2023-01-25 19:59:38 +09:00
Paul O'Leary McCann
9912eff0b5 Use a more generic, parametrized test 2023-01-25 18:37:55 +09:00
Paul O'Leary McCann
6d594b966c Add debug config test and restructure
The code argument imports the provided file. If it adds item to the
registry, that affects global state, which CliRunner doesn't isolate.
Since there's no standard way to remove things from the registry, this
instead uses subprocess.run to run commands.
2023-01-25 15:42:42 +09:00
Paul O'Leary McCann
5cddb4e320 Add debug data test, plus generic fixtures
One tricky thing here: it's tempting to create the config by creating a
pipeline in code, but that requires declaring the custom components
here. However the CliRunner appears to be run in the same process or
otherwise have access to our registry, so it works even without any
code arguments. So it's necessary to avoid declaring the components in
the tests.
2023-01-25 14:43:35 +09:00
Sofie Van Landeghem
7f6c638c3a
fix processing of "auto" in convert (#12050)
* fix processing of "auto" in walk_directory

* add check for None

* move AUTO check to convert and fix verification of args

* add specific CLI test with CliRunner

* cleanup

* more cleanup

* update docstring
2023-01-05 10:21:00 +01:00