-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #197 from avantifellows/user-tests
Tests for Users App
- Loading branch information
Showing
6 changed files
with
224 additions
and
30 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 |
---|---|---|
|
@@ -10,9 +10,9 @@ jobs: | |
name: Pre-commit | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- uses: pre-commit/[email protected] | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- uses: pre-commit/[email protected] | ||
|
||
test: | ||
name: Test cases | ||
|
@@ -58,11 +58,15 @@ jobs: | |
DB_NAME: github_actions_testing | ||
DB_USER: postgres | ||
DB_PASSWORD: postgres | ||
SECRET_KEY: wpurj&oym6m@kcp(m&z(q-g0bo-r*+!f_&j(94di8j&_j4m%2s # random secret key | ||
SECRET_KEY: wpurj&oym6m@kcp(m&z(q-g0bo-r*+!f_&j(94di8j&_j4m%2s # random secret key | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
AWS_REGION: ${{ secrets.AWS_REGION }} | ||
AWS_STORAGE_BUCKET_NAME: ${{ secrets.AWS_STORAGE_BUCKET_NAME }} | ||
ANALYTICS_IDP_TYPE: ${{ secrets.ANALYTICS_IDP_TYPE }} | ||
ANALYTICS_IDP_TOKEN_URL: ${{ secrets.ANALYTICS_IDP_TOKEN_URL }} | ||
ANALYTICS_IDP_CLIENT_ID: ${{ secrets.ANALYTICS_IDP_CLIENT_ID }} | ||
ANALYTICS_IDP_CLIENT_SECRET: ${{ secrets.ANALYTICS_IDP_CLIENT_SECRET }} | ||
REDIS_HOSTNAME: 127.0.0.1 | ||
REDIS_PORT: 6379 | ||
# command to run tests and generate coverage metrics | ||
|
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,27 @@ | ||
scanner: | ||
diff_only: True # If False, the entire file touched by the Pull Request is scanned for errors. If True, only the diff is scanned. | ||
linter: pycodestyle # Other option is flake8 | ||
|
||
pycodestyle: # Same as scanner.linter value. Other option is flake8 | ||
max-line-length: 100 # Default is 79 in PEP 8 | ||
# ignore: # Errors and warnings to ignore | ||
# - W504 # line break after binary operator | ||
# - E402 # module level import not at top of file | ||
# - E731 # do not assign a lambda expression, use a def | ||
# - C406 # Unnecessary list literal - rewrite as a dict literal. | ||
# - E741 # ambiguous variable name | ||
|
||
no_blank_comment: True # If True, no comment is made on PR without any errors. | ||
descending_issues_order: False # If True, PEP 8 issues in message will be displayed in descending order of line numbers in the file | ||
|
||
message: # Customize the comment made by the bot | ||
opened: # Messages when a new PR is submitted | ||
header: "Hello @{name}! Thanks for opening this PR. We checked the lines you've touched for [PEP 8](https://www.python.org/dev/peps/pep-0008) issues, and found:" | ||
# The keyword {name} is converted into the author's username | ||
footer: | ||
"Do see the [Hitchhiker's guide to code style](https://goo.gl/hqbW4r)" | ||
# The messages can be written as they would over GitHub | ||
updated: # Messages when new commits are added to the PR | ||
header: "Hello @{name}! Thanks for updating this PR. We checked the lines you've touched for [PEP 8](https://www.python.org/dev/peps/pep-0008) issues, and found:" | ||
footer: "" # Why to comment the link to the style guide everytime? :) | ||
no_errors: "There are currently no PEP 8 issues detected in this Pull Request. Cheers! :beers: " |
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