Budget simulator
Created by: adarsh-murthy
- Create new app budget simulator.
- Write tests for the functions and views.
- Add test data json file to fixtures directory.
- Create index view which renders the html template for budget simulation.
- Create budget-date view to send the graph and table data.
- Create js script that runs to request graph and table data and generate the graph and fill the tables.
- Add budget link to the landing page and impose the same conditions as preliminary analysis for accessing the page.
- To Run tests execute
python manage.py testfrom root directory . You now can view coverage as well.
code changed so you will have to run:
pip install git+ssh://git@github.com/Blocp/bpfin.git --upgrade
They didn't just implement the budget functions but also updated some of their older code so in this PR, you will find small changes in preliminary-finance and financial-inputs to reflect that.
To test, you can go to:
http://127.0.0.1:8000/buildings/<building_id>/
- Fill out all the inputs.
- Go back to this landing page and hit budget simulator. This should take you to a page with a graph and tables.