Skip to content

Fix test_DBfile when called by itself - #67

Merged
dnadeau-lanl merged 1 commit into
spacepy:masterfrom
jtniehof:fix_testdbfile
Mar 3, 2021
Merged

dnadeau-lanl merged 1 commit into
spacepy:masterfrom
jtniehof:fix_testdbfile

Conversation

@jtniehof

Copy link
Copy Markdown
Member

This is a simple fix for test_DBfile. The included tests were working when called from test_all.py, but not when calling test_DBfile.py directly. The pathing is slightly different in those two cases and, in the latter case, it couldn't find the test data. Fixed by using the dbp_testing helper.

PR Checklist

  • Pull request has descriptive title
  • Pull request gives overview of changes
  • (N/A) New code has inline comments where necessary
  • (N/A) Any new modules, functions or classes have docstrings consistent with dbprocessing style
  • (N/A) Major new functionality has appropriate Sphinx documentation
  • (N/A) Added an entry to release notes if fixing a major bug or providing a major new feature
  • (N/A) New features and bug fixes should have unit tests
  • (N/A) Relevant issues are linked in the description (use Closes # if this PR closes the issue, or some other reference, such as See # if it is related in some other way)

 * Was only working when called as part of test_all
@dnadeau-lanl
dnadeau-lanl merged commit 142a497 into spacepy:master Mar 3, 2021
@jtniehof
jtniehof deleted the fix_testdbfile branch March 3, 2021 21:04
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.

2 participants