-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into ruff-format
- Loading branch information
Showing
37 changed files
with
1,567 additions
and
316 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 |
---|---|---|
|
@@ -21,6 +21,15 @@ jobs: | |
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
# because pre-commit uses external mypy | ||
- name: install mypy | ||
run: | | ||
pip install poetry | ||
poetry config virtualenvs.create false | ||
poetry install --only main,typecheck | ||
# https://github.com/typeddjango/django-stubs/issues/458 | ||
- name: create .env file | ||
run: cp example.env .env | ||
- uses: pre-commit/[email protected] | ||
|
||
unit_test: | ||
|
@@ -35,7 +44,9 @@ jobs: | |
run: | | ||
pip install poetry | ||
poetry config virtualenvs.create false | ||
poetry install | ||
poetry install --only main | ||
- name: create .env file | ||
run: cp example.env .env | ||
- name: Run tests | ||
env: | ||
SECRET_KEY: secret | ||
|
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,11 @@ | ||
meta { | ||
name: ConfirmAccount | ||
type: http | ||
seq: 1 | ||
} | ||
|
||
post { | ||
url: {{baseUrl}}/accounts/confirm-account/<token you get via email here> | ||
body: none | ||
auth: none | ||
} |
17 changes: 17 additions & 0 deletions
17
api-collection/Auth/Mail confirmation/Resend mail confirmation.bru
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,17 @@ | ||
meta { | ||
name: Resend mail confirmation | ||
type: http | ||
seq: 2 | ||
} | ||
|
||
post { | ||
url: {{baseUrl}}/accounts/resend-account-confirmation | ||
body: json | ||
auth: none | ||
} | ||
|
||
body:json { | ||
{ | ||
"email": "[email protected]" | ||
} | ||
} |
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,17 @@ | ||
meta { | ||
name: confirm the reset | ||
type: http | ||
seq: 2 | ||
} | ||
|
||
post { | ||
url: {{baseUrl}}/accounts/reset-password/<token here> | ||
body: json | ||
auth: none | ||
} | ||
|
||
body:json { | ||
{ | ||
"password": "admin" | ||
} | ||
} |
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,17 @@ | ||
meta { | ||
name: request a reset | ||
type: http | ||
seq: 1 | ||
} | ||
|
||
post { | ||
url: {{baseUrl}}/accounts/reset-password/ | ||
body: json | ||
auth: none | ||
} | ||
|
||
body:json { | ||
{ | ||
"email": "[email protected]" | ||
} | ||
} |
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.