All Projects → dunossauro → crudzin

dunossauro / crudzin

Licence: other
Um projeto usando flask, sqlalchemy e marshmallow

Programming Languages

python
139335 projects - #7 most used programming language
Gherkin
971 projects
Mako
254 projects

Crudzin

Experiência com um crud usando flask e suas ferramentas

  • Flask
  • flask_sqlalchemy
  • flask_migrate
  • flask_marshmallow
  • marshmallow_sqlalchemy
  • flask-jwt-extended

Apoie a Live de Python

apoia.se/livedepython

Vídeos onde o projeto foi desenvolvido

Desenvolvimento inicial

Escrevendo os testes

Autenticando a API

Testes de comportamento com BDD

Como rodar esse projeto

export FLASK_APP=app
export FLASK_ENV=Development
export FLASK_DEBUG=True

flask run

Como fazer as migrações

flask db init
flask db migrate
flask db upgrade

Como rodar os testes e obter cobertura

# gera o report e roda os testes
coverage run --source=app -m unittest discover -s tests/ -v
# mostra um resumo da cobertura em shell
coverage report
# gera o path '/htmlcov' com htmls estáticos da cobertura
coverage html

Como rodar os testes de comportamento com BDD

behave tests/behavior_tests/features/
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].