Skip to content

Latest commit

 

History

History
38 lines (31 loc) · 854 Bytes

README.md

File metadata and controls

38 lines (31 loc) · 854 Bytes

Quotes API Test Project

Prerequisites

  • Python 3.11.4 installed on your system. If not, you can download and install it from python.org.

Setup

  1. Clone the Repository:

     git clone https://github.com/sgalawar/python_project.git
     cd python_project
    
  2. Create a Virtual Environment:

     python -m venv venv
    
  3. Activate the virtual environment:

  • On Windows:
      venv\Scripts\activate
    
  • On Unix or MacOS:
      source venv/bin/activate
    
  1. Install dependencies:
     pip install -r requirements.txt
    

Running the tests using pytest:

Ensure your virtual environment is activated, and make sure the API server is running and accessible at http://127.0.0.1:6543 before executing the tests. Then, run the following command to execute the tests:

    pytest test_quotes_api.py