This repository has been archived by the owner on Jan 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature/user-page
- Loading branch information
Showing
18 changed files
with
175 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
release: python manage.py migrate | ||
web: gunicorn server.wsgi |
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,16 @@ | ||
{ | ||
"repository": "https://github.com/unb-mds/2023-2-Squad06", | ||
"addons": ["heroku-postgresql:mini", "papertrail:choklad"], | ||
"buildpacks": [ | ||
{ | ||
"url": "https://github.com/moneymeets/python-poetry-buildpack.git" | ||
}, | ||
{ | ||
"url": "heroku/python" | ||
} | ||
], | ||
"env": { | ||
"PYTHON_RUNTIME_VERSION": "3.11.5", | ||
"POETRY_VERSION": "1.6.1" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
from django.utils.translation import gettext as _ | ||
|
||
from apps.users.admin import UserAdmin | ||
from apps.users.forms import CreateUserForm | ||
from apps.users.models import User | ||
|
||
|
||
|
@@ -88,6 +89,34 @@ def test_add_fieldsets(self) -> None: | |
|
||
self.assertEqual(UserAdmin.add_fieldsets, expected_add_fieldsets) | ||
|
||
class RegisterViewTest(TestCase): | ||
def setUp(self) -> None: | ||
self.url = reverse("users:register") | ||
self.valid_data = { | ||
"username": "testuser", | ||
"email": "[email protected]", | ||
"password1": "TestPassword123", | ||
"password2": "TestPassword123", | ||
} | ||
|
||
def test_register_view_get(self) -> None: | ||
response = self.client.get(self.url) | ||
self.assertEqual(response.status_code, 200) | ||
self.assertTemplateUsed(response, "registration/register.html") | ||
self.assertIsInstance(response.context["form"], CreateUserForm) | ||
|
||
def test_post_valid_data(self) -> None: | ||
response = self.client.post( | ||
self.url, data=self.valid_data, follow=True | ||
) | ||
|
||
user = User.objects.get(username=self.valid_data["username"]) | ||
|
||
self.assertRedirects(response, reverse("home")) | ||
self.assertIsNotNone(user) | ||
self.client.force_login(user) | ||
self.assertTrue(self.client.session["_auth_user_id"]) | ||
|
||
def test_email(self) -> None: | ||
user = User.objects.create_user( | ||
username="testuser", | ||
|
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,10 @@ | ||
Reunião 04 | ||
========== | ||
|
||
:bdg-info:`25/10/2023` :bdg-warning:`Sprint 3` | ||
|
||
Resumo | ||
------ | ||
|
||
Esta reunião teve como objetivos nivelar o nivel de conhecimento dos integrantes e retirada | ||
de duvidas. |
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,10 @@ | ||
Reunião 06 | ||
========== | ||
|
||
:bdg-info:`13/11/2023` :bdg-warning:`Sprint 4` | ||
|
||
Resumo | ||
------ | ||
|
||
Esta reunião teve como objetivos discutir o progresso, anunciar a saida de um | ||
integrante. |
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,10 @@ | ||
Reunião 07 | ||
========== | ||
|
||
:bdg-info:`16/11/2023` :bdg-warning:`Sprint 4` | ||
|
||
Resumo | ||
------ | ||
|
||
Esta reunião teve como objetivos redistribuir as partes de cada integrante e a | ||
redução do prazo para entrega das issues. |
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 |
---|---|---|
|
@@ -25,3 +25,6 @@ Atas | |
atas/reuniao-02 | ||
atas/reuniao-03 | ||
atas/reuniao-04 | ||
atas/reuniao-05 | ||
atas/reuniao-06 | ||
atas/reuniao-07 |
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 |
---|---|---|
|
@@ -23,3 +23,4 @@ Sprints | |
sprints/sprint-1 | ||
sprints/sprint-2 | ||
sprints/sprint-3 | ||
sprints/sprint-4 |
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,32 @@ | ||
Sprint 4 | ||
======== | ||
|
||
:bdg-info:`19/11/2023` | ||
|
||
Resumo | ||
------ | ||
|
||
Nesta sprint, a equipe de desenvolvimento começou a trabalhar na segunda release. As | ||
principais atividades foram o início do desenvolvimento da parte de submissões e a | ||
estilização da página de login para melhor acessibilidade do usuário. | ||
|
||
|
||
Changelog | ||
---------- | ||
|
||
- `Criar app de submissões (#66) <https://github.com/unb-mds/2023-2-Squad06/issues/66>`_ | ||
- `App inicial de submissões (PR) (#77) <https://github.com/unb-mds/2023-2-Squad06/pull/77>`_ | ||
- `Adicionar validadores em todas as páginas de admin (PR) (#76) <https://github.com/unb-mds/2023-2-Squad06/pull/76>`_ | ||
- `Estilizar página de login (#63) <https://github.com/unb-mds/2023-2-Squad06/issues/63>`_ | ||
- `Estilizar página de login (PR) (#75) <https://github.com/unb-mds/2023-2-Squad06/issues/75>`_ | ||
- `Adicionar documentação da Sprint 03 (#62) <https://github.com/unb-mds/2023-2-Squad06/issues/62>`_ | ||
- `Adicionar Documentação da Sprint 03 (PR) (#73) <https://github.com/unb-mds/2023-2-Squad06/issues/73>`_ | ||
- `Retirar nome de ex-integrante do grupo (#72) <https://github.com/unb-mds/2023-2-Squad06/issues/72>`_ | ||
- `Remover Nome de ex-Integrante (PR) (#74) <https://github.com/unb-mds/2023-2-Squad06/issues/74>`_ | ||
- `Adicionar Documentação da Sprint 02 (#67) <https://github.com/unb-mds/2023-2-Squad06/issues/67>`_ | ||
- `Adicionar documentação da Sprint 02 (PR) (#70) <https://github.com/unb-mds/2023-2-Squad06/issues/70>`_ | ||
- `Renomear o app apps.problems para apps.tasks (#31) <https://github.com/unb-mds/2023-2-Squad06/issues/31>`_ | ||
- `Rename apps.problems to apps.tasks (PR) (#61) <https://github.com/unb-mds/2023-2-Squad06/issues/61>`_ | ||
- `Initial problems form development (PR) (#65) <https://github.com/unb-mds/2023-2-Squad06/issues/65>`_ | ||
- `Add integrations with CI services (PR) (#59) <https://github.com/unb-mds/2023-2-Squad06/issues/59>`_ | ||
- `Bump django from 4.2.5 to 4.2.7 (PR) (#58) <https://github.com/unb-mds/2023-2-Squad06/issues/58>`_ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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