forked from BYU-Hydroinformatics/tethysapp-tethys_app_store
-
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.
Added Tests 93% Python Coverage (#12)
* added function docstrings to tested functions * updated some function names for clarity * updated get_head_and_tag_names to use remote repo instead of local * updated get_workflow_job_url to use all python apis instead of request library * updated some variable names to be more clear * created helper functions to remove duplicated code * move some helper functions into resource helpers * linted all code with flake8 * finished tests for most python files * fixed minor mamba command issue
- Loading branch information
Showing
44 changed files
with
4,748 additions
and
1,244 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 |
---|---|---|
|
@@ -6,4 +6,5 @@ omit = | |
*tests/*, | ||
*urls.py, | ||
*wsgi.py, | ||
manage.py | ||
manage.py, | ||
*workspaces/* |
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,4 @@ | ||
[flake8] | ||
max-line-length = 120 | ||
exclude = tethysapp/app_store/workspaces/ | ||
|
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,4 @@ | ||
[pytest] | ||
DJANGO_SETTINGS_MODULE=tethys_portal.settings | ||
python_files = test_*.py *_tests.py | ||
addopts = --ignore-glob=*workspaces/* --cov --cov-report term-missing --disable-warnings |
Empty file.
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
Oops, something went wrong.