- Applications:
account,diary,news,school,timetable,notebook.Each directory contains Django application files (apps.py,models.py), testing scripts with data andurls, and databasemanagementcommands with predefined test data. logswith stored requests and responses.schoolmatecontains settings for proper database interaction.utilsare the core of this testing framework.config.jsonandpytest.inicontain framework's settings.prepare_db.pyis used to clear database and fill it with predefined test data.update_apps.shis used to updateapps.pyandmodels.pyof each application from Schoolmate repository.
- Python 3.8 or higher
- Packages listed in
requirements.txt
Clone
schoolmate-testrepository:git clone https://github.com/kolyat/schoolmate-test.git cd schoolmate-test
Create and activate virtual environment:
virtualenv -p /usr/bin/python3.8 venv source venv/bin/activate
Install requirements:
pip install -r requirements.txt
Set up
schoolmate/settings.py,config.json,pytest.ini.Run
update_apps.sh.Run
pytest(use--prepare-dbto populate database with predefined testing data).