Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Teste em user_repository #1

Open
leonardobarrosdev opened this issue Feb 16, 2024 · 0 comments
Open

Teste em user_repository #1

leonardobarrosdev opened this issue Feb 16, 2024 · 0 comments

Comments

@leonardobarrosdev
Copy link

Ao executar os testes percebi que para eliminar o usuário não estava percorrendo a tabela de users para identificar o id:

connection.execute(text(f'''
DELETE FROM users WHERE id = {registry.id}
'''))

Resolvi colocando as aspas como foi mostrado anteriormente:
'''
connection.execute(text(f'''
DELETE FROM users WHERE id = '{registry.id}'
'''))
'''

@programadorLhama se poder ver o meu projeto e dar sugestões de melhorias ficarei muito grato: https://github.com/LBarros77/rifas-api

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant