This is a simple Python Based Template, where we can leverage the benfits of test driven development without any infrastucture dependency and follow the PEP-8 standard.
-
We have to write their code in the
srcdirectory with their testcases inside thetestsdirectory. -
The request/responce for the respective python module should be maintained inside the
tests/fixturesdirectory in.jsonformat. -
We can check their code by executing
python test.pyinside their terminal/command prompt.
If there is any error/warning in their code, we can watch the details inside the terminal/command prompt as shown in the picture above and fix accordingly
Python Version: 3.7.7
First of all, clone this using terminal/command prompt after running-
git clone https://github.com/pranabsarkar/python_tdd_base_template.git
Once, it is cloned move into the directory-
cd python_tdd_base_template
Please open terminal/command prompt in the current directory and run this command to insatall the dependencies-
pip install -r requirements.txt
Open terminal/command prompt and run this command to start the application-
python test.py
Please feel free to add your input's :)
