Go to file
Manraj 9b893e0510
Update Jenkinsfile
2023-03-11 02:42:50 -05:00
app Fix: Dockerfile and routes error handling 2023-03-10 18:33:38 -05:00
deployment Chapter 22: Background Jobs (v0.22) 2022-11-11 12:56:46 +00:00
migrations Add 2FA 2023-03-06 14:11:02 -05:00
tests Missed a file 2023-03-08 19:52:19 -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 Merge branch 'main' into Issue-#5-Add-2FA 2023-03-10 22:20:05 -05:00
Dockerfile Fix: Dockerfile and routes error handling 2023-03-10 18:33:38 -05:00
Jenkinsfile Update Jenkinsfile 2023-03-11 02:42:50 -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 Add 2FA 2023-03-06 14:11:02 -05:00
microblog.py Update microblog.py 2023-02-26 22:02:53 -05:00
requirements.txt Merge branch 'main' into Issue-#5-Add-2FA 2023-03-10 22:20:05 -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 "