Skip to content

egorbriliov/django-testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Testing: YaNote & YaNews

Python Django pytest unittest

Description

This project was developed as part of the Yandex Practicum curriculum. The main goal was to master Django application testing using various frameworks and methodologies.

The repository includes two separate applications:

  1. YaNote — a note-taking service tested with the standard Unittest library.

  2. YaNews — a news portal tested with the Pytest framework.

Purpose

This project serves as a showcase of my Backend QA skills. It demonstrates my ability to write maintainable tests, manage fixtures, and verify complex business logic within real-world Django environments.

Key Testing Areas

  • Models: Ensuring correct object creation, string representations, and attribute validation.
  • URLs & Access: Verifying page availability for anonymous users, authorized users, and content authors.
  • Forms: Data validation and handling of edge cases in user input.
  • Business Logic: Testing CRUD operations (Create, Read, Update, Delete) for notes and comments.

Setup & Installation

1. Clone the repository

git clone https://github.com
cd django_testing

2. Create and activate a virtual environment

python -m venv venv
source venv/bin/activate

3. Install dependencies

pip install -r requirements.txt

4. Run tests

For YaNote (Unittest):

python manage.py test yanote

For YaNews (Pytest):

pytest

About

This project was developed as part of the Yandex Practicum curriculum. The main goal was to master Django application testing using various frameworks and methodologies.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors