filmov
tv
Django & HTMX App - Custom Managers | pytest & factory-boy for unit tests

Показать описание
☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
To support the channel and encourage new videos, please consider buying me a coffee here:
In this video, we'll add a custom model manager to our app's transaction model, and will set up pytest and factory-boy for unit testing our application functionality.
📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro
00:55 Creating custom Django QuerySet methods
05:40 Override default model manager in Django model
10:05 Setting up pytest
11:45 Creating factory-boy Factory classes for Django models
18:11 Testing out Factory classes
19:51 Creating pytest fixture to inject transactions
21:22 Writing pytest functions for custom QuerySet methods
𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:
📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
#python #django #webdevelopment #htmx
To support the channel and encourage new videos, please consider buying me a coffee here:
In this video, we'll add a custom model manager to our app's transaction model, and will set up pytest and factory-boy for unit testing our application functionality.
📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro
00:55 Creating custom Django QuerySet methods
05:40 Override default model manager in Django model
10:05 Setting up pytest
11:45 Creating factory-boy Factory classes for Django models
18:11 Testing out Factory classes
19:51 Creating pytest fixture to inject transactions
21:22 Writing pytest functions for custom QuerySet methods
𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:
📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
#python #django #webdevelopment #htmx
Django & HTMX App - Setup, Models and Management Command
Django and htmx Tutorial: Easier Web Development
htmx in 100 seconds
7 minutes to polling with Django and HTMX 🗳️
HTMX: 3 IRL Use Cases
DjangoCon 2022 | From React to htmx on a real-world SaaS product: we did it, and it's awesome!
HTML-ivating your Django web app's experience with HTMX, AlpineJS, and streaming HTML - Chris M...
Django + Htmx | Build a Todo App with Django and Htmx | Django Project for Beginners
Boost Your Django App with Async Views!
Create a quiz app with HTMX and Django in 8 mins ☑️
Modal Forms with Django, HTMX, and Tailwind CSS
HTMX with Django
Django, HTMX and DaisyUI Components - Building a To-Do List App
How to speed up your Django list view (with HTMX)!
3 years of htmx + Django!
Python Tutorial: Build a Course Platform with Django, HTMX, TailwindCSS and Cloudinary.
Django & HTMX App - Infinite Scroll and Pagination
The Most Important Lesson From HTMX
Django HTMX & Alpine.js mini-project - Sport Result Prediction App
How to Create an Instant Search Bar With Django and HTMX
What is HTMX? Seriously 🤔
Django & HTMX App - hx-indicator for User Feedback
Django and Htmx Todo Application | Tailwind CSS
Django and HTMX #21 - WebSocket Notifications with the HTMX WebSocket Extension and django-channels
Комментарии