Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

NdagiStanley/room-allocation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Room Allocation

Checkpoint 1 Python

Build Status Coverage Status Code Issues

A Room Allocation program

In this repository the building has 10 offices and 10 Living spaces, which are first of all pre-populated and then accepts an input text file with the names of those to be allocated and randomly allocates them to the offices and Living spaces. Those not allocated space are then returned.

Installation and usage

RUN git clone https://github.com/NdagiStanley/room-allocation.git to clone this repo

Create a virtual environment using virtualenv or virtualenvwrapper and do the following in it.

  1. Install DEPENDENCIES pip install -r requirements.txt
  2. RUN $ python sample.py or $ python sample.py 'file' 'file' here should be in the parent directory
  3. TEST $ nosetests
  4. Check the COVERAGE of the tests coverage run tests/test_building.py and coverage report

Copyright (c) 2016

Releases

No releases published

Packages

No packages published

Languages