-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add unit tests for s3 resource and associated bug fixs for bugs found…
… while testing
- Loading branch information
Showing
8 changed files
with
433 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
|
||
[mypy] | ||
check_untyped_defs = true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
./test | ||
./remotes | ||
./test_git_utils_data | ||
/test_params.cfg | ||
/utils_for_tests_data/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
========================= | ||
Tests for Data Workspaces | ||
========================= | ||
|
||
This directory contains the test suite for DWS. To ensure you have all the dependencies, use | ||
the Anaconda environment specified in dws-test-environment.yml. We use the oldest version of | ||
Python we support to catch any accidental use of newer syntax contructs. | ||
|
||
You can use the Makefile to drive the tests. ``make test`` will run the pyflakes checks, | ||
mypy checks, and the unit test suite. Some tests use ``unittest.skipUnless`` to check | ||
for any external requirements and skip the test if the requirements are not satisfied. | ||
|
||
A few tests require special configuration: | ||
|
||
* ``test_rclone.py`` has tests that need an ``rclone`` remote called *dws-test* to be | ||
configured in the system's rclone configuration file. | ||
* ``test_s3_resource.py`` has tests that require an s3 bucket. This bucket should be specified | ||
in the file ``test_params.cfg`` is follows: | ||
|
||
[s3_resource] | ||
s3_bucket=YOUR_BUCKET_NAME | ||
|
||
|
Oops, something went wrong.