-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merging develop (v1.2) to master (#9)
* Updated README.md * Base extractor - Initial cut (#1) * Initial commit of base for extractors * Fixed dockerfile * Added README * Changed extractor to transformer in readme * Updated README * Fleshing out functionality * Updates for file list support * Variable name clarification * Bug fixes * Optimizing Dockerfile * Fixed typo * Merging into Develop (#2) * Initial commit of base for extractors * Fixed dockerfile * Added README * Changed extractor to transformer in readme * Updated README * Fleshing out functionality * Updates for file list support * Variable name clarification * Bug fixes * Optimizing Dockerfile * Fixed typo * Debugging * Removed TERRA REF left-over commented out code * Adding command line parameter storage * Added text abour return codes * Fix up transformer declared types (#4) * Changed list to tuple * type declaration correction and additional commenting * Pylint changes * Test development (#7) * Adding test files * Was missing the 'test_transformer.py' file and made some changes to 'test_transformer_class.py' * adding the initial travis yml * Filled out the yml file * Changed the tests from base unittest to pytest * Changed to pytest over basic unittest * Moved tests to own folder * Removed duplicate files * Moved the yml file out of base-image * modified travis yml to move directories for testing * Added -v to pytest run for more clarity * Ignoring a test for testing purposes * Reverted git ignore changes and temporarily removed a test * Placed test_entrypoint.py back into folder * Pushing from new local * Changed file naming conventions to be more conformative * removing duplicates * Fixed a test * Added pylint installation to travis yml * Added test doc as a link in main readme. * fixed a formatting issue * Initial test folder readme draft * Clarified testing process * added links to helpful documentation * Clarified type of testing being done * Adding pylint file * renamed pylintrc file * changes to pylint file * fixed pylint call * trying to include all files from test folder * moved pylint file * testing pylint * Fixed yml file * fixing yml * I think I figured out the problem * I'll seperate them and make to calls * Made seperate calls * misspelled directory name * made some pylint recommended adjustments * now pulling pylintrc from repo * adding organization repo * Hopefully this works * Updated readme * Added some new lines * Trying again * hopefully this is it * please * done * Minor readme changes * Added pylint protocol link in readmes * Pylint changes * made some pylint recomended changes * Helping pylint along * Directory issues * Resetting python path * adding another line * adding another line * adding another line * added some ignore lines * adding another line * Moved files around * Finding pylint rc * Missed a quotation mark * fixed pylint call * pylint diables * Update base-image/test-files/README.md Co-Authored-By: Chris Schnaufer <schnaufer@email.arizona.edu> * Update base-image/test-files/README.md Co-Authored-By: Chris Schnaufer <schnaufer@email.arizona.edu> * Update base-image/test-files/README.md Co-Authored-By: Chris Schnaufer <schnaufer@email.arizona.edu> * Update base-image/test-files/README.md Co-Authored-By: Chris Schnaufer <schnaufer@email.arizona.edu> * Update base-image/test-files/README.md Co-Authored-By: Chris Schnaufer <schnaufer@email.arizona.edu> * Incorporated Chris' suggestions * Fixed a mistake * Made changes recommended by Chris * missed a change * Loading multiple metadata files & pylint changes (#6) * Update .gitignore, allowing multiple --metadata arguments, spelling & pylint changes * Logging what metadatafiles are loading * Added ability to download files after transformer gives the go-ahead (#8) * Update .gitignore, allowing multiple --metadata arguments, spelling & pylint changes * Logging what metadatafiles are loading * Adding call to download files Co-authored-by: Jorge Barrios <jorgebarrios@email.arizona.edu>
- Loading branch information
1 parent
7593f1e
commit 23045ba
Showing
11 changed files
with
414 additions
and
46 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -102,3 +102,6 @@ venv.bak/ | |
|
||
# mypy | ||
.mypy_cache/ | ||
|
||
# pycharm | ||
.idea |
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,20 @@ | ||
language: python | ||
|
||
python: | ||
- "3.7" | ||
|
||
cache: pip | ||
|
||
install: | ||
- "pip install pytest" | ||
- "pip install pylint" | ||
|
||
script: | ||
- "git clone https://github.com/AgPipeline/Organization-info.git" | ||
- mv base-image/test-files/*.py base-image | ||
- cd base-image | ||
- rm -r test-files | ||
- cd .. | ||
- pylint --rcfile=Organization-info/pylint.rc base-image/*.py | ||
- "python -m pytest -v" | ||
|
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 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,38 @@ | ||
# Transformer Unit Tests | ||
This folder holds the unit tests [TravisCI](https://travis-ci.org/) will run in it's build. | ||
These are basic functional unit tests, checks for output formatting and typing. All tests are written in and utilizing [pytest](https://docs.pytest.org/en/latest/). | ||
In addition to this, [pylint](https://www.pylint.org/) will also be deployed. | ||
Look into our organization's repository for our [pylint protocols](https://github.com/AgPipeline/Organization-info) | ||
|
||
### Running the tests | ||
Upon submitting a pull request Travis will build and run the testing modules automatically and will return a report with all passing or failing code. | ||
|
||
### Running the tests before submitting a pull request | ||
Should you wish to test your code before submitting a pull request follow these steps: | ||
1) Clone, pull, copy or otherwise aquire the pylintrc file located at this [repo](https://github.com/AgPipeline/Organization-info) | ||
|
||
2) From the command line run the following commands (from base-docker-support as current directory) | ||
```sh | ||
pylint --rcfile=<path-to-pylint.rc> base-image/*py | ||
pylint --rcfile=<path-to-pylint.rc> base-image/**/*py | ||
``` | ||
3) Once the previous commands have executed there will be a list of changes that should be made to bring any code up to standard | ||
4) From the command line run the following command while the current working directory is base-image | ||
```sh | ||
python -m pytest -v | ||
``` | ||
or | ||
```sh | ||
python3 -m pytest -v | ||
``` | ||
|
||
|
||
### Requirements | ||
|
||
There are no additional requirements or dependancies if not running these tests locally, if however these are to be run before deploying travis the following are required. | ||
|
||
python 3 \ | ||
pylint \ | ||
pytest | ||
|
||
All three may be installed using pip, conda, or another preferred method. |
Oops, something went wrong.