Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unit tests for scripts #8

Merged
merged 5 commits into from Jul 17, 2020

Conversation

jtniehof
Copy link
Member

The tests_scripts directory contains unit tests for the scripts. Unfortunately these hadn't been updated in awhile and were failing. This PR fixes them, as well as making a small change so addFromConfig works properly with older config files (ones that don't explicitly specify code, inspector, and error directories.)

 * Rewrap expected input
 * More fine-grained testing so easier to find what's different
 * The parsing of the inputs changed to allow for specifying days
   before/after, and the test was never updated.
 * Update addMission to make the parameters optional again
 * Update addFromConfig and tests to make them optional
 * This should work with old or new database structure, and old
   or new config files.
@jtniehof jtniehof added the testing Affects tests not functionality label Jul 17, 2020
@dnadeau-lanl dnadeau-lanl merged commit 44690a9 into spacepy:master Jul 17, 2020
@jtniehof jtniehof deleted the fix_tests_scripts branch July 17, 2020 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Affects tests not functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants