Go to file
Aleksa V 71249f04ab PR issues 2023-03-08 19:51:22 -05:00
app Update login.html 2023-02-26 21:48:59 -05:00
deployment Chapter 22: Background Jobs (v0.22) 2022-11-11 12:56:46 +00:00
migrations Chapter 23: Application Programming Interfaces (APIs) (v0.23) 2022-11-11 12:57:54 +00:00
tests Scaffolded and added readmes for testing work 2023-03-07 21:49:09 -05:00
.flaskenv Chapter 1: Hello, World! (v0.1) 2019-11-27 20:02:52 +00:00
.gitattributes Initial commit (v0.0) 2018-01-06 08:36:36 -08:00
.gitignore Initial commit (v0.0) 2018-01-06 08:36:36 -08:00
Dockerfile Update Dockerfile 2023-02-26 19:08:08 -05:00
Jenkinsfile Update Jenkinsfile 2023-03-07 18:39:58 -05:00
LICENSE Initial commit (v0.0) 2018-01-06 08:36:36 -08:00
Procfile Chapter 22: Background Jobs (v0.22) 2022-11-11 12:56:46 +00:00
README.md PR issues 2023-03-08 19:51:22 -05:00
Vagrantfile Chapter 17: Deployment on Linux (v0.17) 2022-11-11 12:52:59 +00:00
__init__.py Scaffolded and added readmes for testing work 2023-03-07 21:49:09 -05:00
babel.cfg Chapter 13: I18n and L10n (v0.13) 2022-11-11 12:51:46 +00:00
boot.sh Chapter 19: Deployment on Docker Containers (v0.19) 2022-11-11 12:52:59 +00:00
config.py Chapter 22: Background Jobs (v0.22) 2022-11-11 12:56:46 +00:00
microblog.py Update microblog.py 2023-02-26 22:02:53 -05:00
requirements.txt Scaffolded and added readmes for testing work 2023-03-07 21:49:09 -05:00

README.md

Welcome to Microblog!

This is an example application featured in my Flask Mega-Tutorial. See the tutorial for instructions on how to work with it.

How to run behave tutorial

NOTE behave steps in the .feature file MUST unicode match those in the 'steps' file

e.g. in the *.feature file there is a Gherkin line like 'the task 'Buy groceries' with estimate '2' should be added to the todo list'

then in the accompanying *step.py file it must follow the exact unicode in the behave decorator Like this -> '@then("the task '{title}' with estimate '{estimate}' should be added to the todo list")'

Also step files must follow the regex *step.py

  1. Running all behave features

run " behave tests/features/add-task.feature "

How to run unit tests

unit tests must follow the "test*.py" regex to be picked up

  1. Individual tests

run " python ./ests/unit/test_example.py "

  1. Run all unit tests

run " python -m unittest discover -s ./tests/unit "