This repo contains code for a restaurant review system for Phase 3 Week 2 Code Challenge based on python classes and instances, class and instance methods, variable scope, object relationships, and lists and list methods working with a Yelp-style domain.
This project utilizes the pytest
library for testing purposes. The pytest framework
makes it easy to write small, readable tests, and can scale to support complex functional testing for applications and libraries.
The test suite encompases all deliverables for this code challenge. All tests should be passing.
git clone https://github.com/JOY19ANYANGO/phase3-wk2-challenge.git
cd phase3-wk2-challenge
The root directory of this repository contains the Pipfile
with all the required Python libraries for this project and restricts them to this repository.
To install pytest
and any other required libraries, run:
pipenv install
pipenv shell
pytest restaurants/test.py
You can use the Restaurant Review System to simulate interactions between customers, restaurants, and reviews. Follow these steps to get started: Do this in main.py file
- Create customer and restaurant instances.
- Add reviews using the add_review method.
- Retrieve information about customers, restaurants, and reviews using the provided methods.
- Run
python3 main.py
in your terminal to see the output
Authored by Joy Anyango.
Licensed under the MIT