Skip to content

This is a simple Python Based Template, where we can leverage the benfits of test driven development without any AWS infrastucture dependency and follow the PEP-8 standard.

Notifications You must be signed in to change notification settings

pranabsarkar/python_tdd_base_template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python_tdd_base_template

Overview

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.

Steps - Involved

  1. We have to write their code in the src directory with their testcases inside the tests directory.

  2. The request/responce for the respective python module should be maintained inside the tests/fixtures directory in .json format.

  3. We can check their code by executing python test.py inside their terminal/command prompt.

Execution

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

Setup Guide

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

Reference

  1. PyTest
  2. flake8
  3. Test Driven Development

Author Note

Please feel free to add your input's :)

About

This is a simple Python Based Template, where we can leverage the benfits of test driven development without any AWS infrastucture dependency and follow the PEP-8 standard.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages