-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TST/CI: refactor test suite to use TeenyTweetyNet, fix #330
generating test data: - rename tweetynet configs - add teenytweetynet configs - modify test_data_generate.py script - so it finds all configs - have it make model subdirectories in results/ - rewrite Makefile - differentiate 'all' and 'ci' generated test data - change commands, variables, urls to data refactoring tests: - add `model` parameters to fixtures: - to `specific_config` fixture - to `specific_config_toml` fixture - to `dataframe` fixtures - change `previous_run_path` fixture to `previous_run_path_factory` - use `model` as argument to `_previous_run_path` function returned by factory - add `models` command-line option for pytest + that will parametrize any test that specifies `models` fixture with whatever arguments are passed in at command line - use `model` fixture in tests - add model fixture to unit tests in test_core/ and test_cli/ - use `model` fixture in a test in test_labeled_timebins - use `previous_run_path_factory` with `model` in test_cli/test_learncurve.py - also add `default_model` fixture that is used whenever a model name is needed by other fixtures (e.g. `specific_config`) but the model shouldn't actually matter + idea is this model should work no matter where tests are run, CI v. locally + this is a code smell to me -- if tests don't depend on model then why do I need a "dummy model" + but not obvious to me right now how to disentangle them, and I just want to get the damn CI working CI: - have ci.yml download just test data generated for ci - have ci run pytest using command-line option models, and specifying only teenytweetynet for now (default but make it explicit anyway) - fix the `fix_prep_csv_paths` script so that it correctly finds prep csv files with the new test data directory names and structure other refactoring - move src/scripts to tests/scripts - rename test_data to data_for_tests + so it doesn't look like a sub-package of tests to `pytest`
- Loading branch information
1 parent
3a5c782
commit 54e0165
Showing
46 changed files
with
847 additions
and
407 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.