Skip to content

suyash248/parking_lot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parking Lot

Requirements

Python 3.5+, pip3

Usage

  1. Move to <project-dir>, create virtual environment and then activate it as
$ cd <project-dir>
$ virtualenv -p python3 .env
$ source .env/bin/activate
  1. Add project to PYTHONPATH as
$ export PYTHONPATH="$PYTHONPATH:." # . corresponds to current directory(project-dir)
  1. Then run test cases as
$ python -m unittest discover -s 'tests' -p '*.py'
  1. Then run the application run.py as
$ python run.py                         # Interactive mode
$ python run.py input_file_path.txt     # File mode

Assumptions

  1. If create_parking_lot command will be executed more than once, it will overwrite/remove the existing/previous information, and an empty parking lot will be created.

  2. Make sure python points to python3 on target machine, or else make appropriate changes in bash scripts(available under /bin) .