Django Test Tutorial Project

This tutorial project demonstrates how to use Django's testing framework to write and run test cases for your Django applications. It includes sample test cases and a YouTube tutorial to guide you through the process of writing Django test cases.

Getting Started

To get started with the Django Test Tutorial Project, follow the steps below:

1. Clone the Repository

Clone the repository to your local machine using the following command:

git clone <repository-url>

2. Install Dependencies

Navigate to the project directory and install the required dependencies:

cd tutorialproject
pip install -r requirements.txt

3. Run Migrations

Apply the database migrations to create the necessary tables:

python manage.py migrate

4. Run the Server

Start the development server:

python manage.py runserver

5. Run test cases

To run the test cases

python manage.py test

if you want to use same test db multiple times to make it faster

python manage.py test --k

Tutorial

This project includes a YouTube tutorial to guide you through the process of writing Django test cases. You can find the tutorial at https://www.youtube.com/watch?v=LBeQYwi78EA . The tutorial covers the following topics:

  • Introduction to Django's testing framework
  • Writing unit tests for models, views.
  • Using test fixtures and setUp/tearDown methods

Feel free to explore these test cases and modify them to suit your project requirements.

Contact

If you have any questions or need further assistance, you can reach out to me via email at tasfiqulghani@gmail.com.

Happy testing with Django!