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/submission-form
- Loading branch information
Showing
15 changed files
with
115 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -117,3 +117,18 @@ def test_post_valid_data(self) -> None: | |
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", | ||
email="[email protected]", | ||
password="testpassword", | ||
) | ||
self.client.force_login(user) | ||
|
||
url = reverse("users:profile", args=[user.username]) | ||
|
||
response = self.client.get(url) | ||
|
||
self.assertEqual(response.status_code, 200) | ||
self.assertContains(response, user.email) |
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,9 +1,12 @@ | ||
from django.urls import path | ||
|
||
from apps.users.views import RegisterView | ||
from apps.users.views import ProfileView, RegisterView | ||
|
||
app_name = "users" | ||
|
||
urlpatterns = [ | ||
path("", RegisterView.as_view(), name="register"), | ||
path("register/", RegisterView.as_view(), name="register"), | ||
path( | ||
"profile/<str:user_username>/", ProfileView.as_view(), name="profile" | ||
), | ||
] |
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>`_ |
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,12 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block title %}User{% endblock title %} | ||
|
||
{% block content %} | ||
<div class="user-profile"> | ||
<h2>{{user.username}}</h2> | ||
<p>Email: {{ user.email }}</p> | ||
<p>Score: </p> | ||
<p>Contests: </p> | ||
</div> | ||
{% endblock content %} |