- Python 3.11.4 installed on your system. If not, you can download and install it from python.org.
-
Clone the Repository:
git clone https://github.com/sgalawar/python_project.git cd python_project
-
Create a Virtual Environment:
python -m venv venv
-
Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On Unix or MacOS:
source venv/bin/activate
- Install dependencies:
pip install -r requirements.txt
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