Skip to content

Clean up unit tests for onestop-python-client #1500

@kenhtanaka

Description

@kenhtanaka

Summary

As a Developer
I want to be able to Change all constructor signatures to not take a config file path but parameters and improve unit tests for the onestop-python-client module
So that I can have better test coverage without errors and not pass a config file into every constructor.
  • Change classes so none have config files passed in, only parameters needed.
  • Updated effected documentation
  • Get unit tests working
  • Change unittests to not load config but have their own dict they pass in, no need for loading from a config file for unittests.
  • Move unit tests to onestop-python-client/tests/unit and put test_WebPublisher in onestop-python-client/tests/integration
  • Update Circle CI to run all tests, had to rename/move unit tests to test/unit/test*.py so python unittest discovery can find them. Moved integration test to test/integration
  • Set build environment variables for integration tests to use.
    - [ ] Update scripts to at least accurate, unsure if all can work. Moved to new story
  • Refactored S3Utils.connect so clearer, adds one more param but is clearer.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions