Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Personal practice of OOP by imitating tricount app functionalities

License

s4mc4d/Tricount

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tricount OOP

This is my version to practice OOP by replicating Tricount app algorithm.

Structure

Classes defined are :

  • Contributor : used to identify a person involved in any expense
  • Transaction : object defined by a positive amount (seen as an expense), a owner (of type Contributor) and a list of Contributor objects.
  • Expenses : gathers all transactions and provides methods to calculate final equilibrium.

Testing the core

cd Tricount
source .env/bin/activate
python3 -m pytest tests -v --cov

Parameters -v and --cov are optional

About

Personal practice of OOP by imitating tricount app functionalities

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages