Feature/dynamo member - #24
Merged
Merged
Conversation
Member Refactoring to Dynamo Branch
lseixas
requested changes
Sep 14, 2026
Comment on lines
+61
to
+80
| @pytest.mark.skip(reason="Needs dynamoDB") | ||
| def test_update_member(self): | ||
| os.environ["STAGE"] = "TEST" | ||
|
|
||
| member_repository = MemberRepositoryDynamo() | ||
| member_repository_mock = MemberRepositoryMock() | ||
|
|
||
| created = member_repository.create_member(member_repository_mock.members[0]) | ||
|
|
||
| updated_member = Member( | ||
| member_id=created.member_id, | ||
| name="Nome do Membro Atualizado", | ||
| member_function=created.member_function, | ||
| linkedin=created.linkedin, | ||
| member_photo=created.member_photo, | ||
| description=created.description | ||
| ) | ||
| resp = member_repository.update_member(updated_member) | ||
|
|
||
| assert resp.name == "Nome do Membro Atualizado" |
Member
There was a problem hiding this comment.
att esse teste para o novo member, acho que falta o member status aqui.
depois disso ta td certinho para mandar para dev
Member
There was a problem hiding this comment.
@oTeitz mudança rápida. Testa isso antes no dynamo local (retira o markskip para testar)
lseixas
approved these changes
Oct 1, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implementa a camada de persistência Dynamo para Member, seguindo o mesmo padrão single-table já usado por User.
O commit feat: member_dynamo_dto and test foi construído em cima de uma estrutura de chaves desatualizada;
O commit seguinte, de fix, corrige isso trazendo o dynamo_keys.py atual de dev e realinhando o DTO ao padrão vigente.
O terceiro commit implementa o MemberRepositoryDynamo propriamente dito, o script de seed e o erro de duplicidade correspondente.