That was my first project using the language Python. In this project, I made some analysis based on a set of jobs data (data/jobs.csv)
implementing functions and incorporating them into a web app using Flask. To ensure the correctness of some functionalities, I also made some tests to functionalities using the pytest lib.
In this project, I was able to:
- Use conditional and loop structures.
- Use Python's built-in functions.
- handle exceptions.
- Manipulate files.
- Write functions.
- Testing with Pytest.
- Write modules and import them into another code.
Python | Pytest |
---|---|
- Clone the repository and enter it
git clone git@github.com:ImVictorM/Job-Insights.git && cd Job-Insights
- Create the virtual environment
python3 -m venv .venv && source .venv/bin/activate
- Install the dependencies
python3 -m pip install -r dev-requirements.txt
- Run the application
flask run
Follow the link to see the app running: http://localhost:5000
To run all tests:
python3 -m pytest
Running only one test file:
python3 -m pytest {test_file_path}.py