Note: This repository contains two implementations of an investment tracker. One is a pure Python implementation of essential classes with associated unit tests.
The other is an implementatio in Python and the Django Web Framework. This will eventually have unit tests once the translation of the Python implementation into the form needed for models and views in Django is complete.
Both were created for SENG 6245 course at East Carolina University.
- Create a new
conda
environment:conda create -n SENG6245 python=3.8
- Activate the environment:
conda activate SENG6245
- Install Django 2.2 using
pip
: pip install Django==2.2` - Install
coverage
usingconda
:conda install coverage
- Navigate to /investmentracker/
- Run
python manage.py runserver
- Navigate to localhost on port 8000 to view the landing page.
- Access the Django admin page
Run Python tests from within the subdirectories of hw4: python run -m unittest -v Test*.py
Run Coverage for unit tests: coverage run -m unittest -v Test*.py`
View Coverage report: coverage report -m
inside one of the modle directories.
Use this command to run unit tests for the Django project: python manage.py test -v 3 investmentservices
Note: It should be run within the same directory as manage.py
.