Тёмный

pytest fixtures with arguments (Parametrize a fixture) 

Eden Marco
Подписаться 2,7 тыс.
Просмотров 6 тыс.
50% 1

Опубликовано:

 

13 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 5   
@ryanjohnson5415
@ryanjohnson5415 2 года назад
Finally, been looking for something that explains how to do something like this. Nicely done, thanks.
@mikhailkochetov3226
@mikhailkochetov3226 Год назад
Hi, Eden! Very useful tutorial. Can you share what is in Company class?
@davidazocar2155
@davidazocar2155 3 года назад
very useful, thank you
@dhanyapadmanabhan496
@dhanyapadmanabhan496 2 года назад
what is there inside the Company class ? can you share it ?
@EdenMarco
@EdenMarco Год назад
This is the class: class Company(models.Model): class CompanyStatus(models.TextChoices): LAYOFFS = "Layoffs" HIRING_FREEZE = "Hiring Freeze" HIRING = "Hiring" name = models.CharField(max_length=30, unique=True) status = models.CharField( choices=CompanyStatus.choices, default=CompanyStatus.HIRING, max_length=30 ) last_update = models.DateTimeField(default=now, editable=True) application_link = URLField(blank=True) notes = models.CharField(max_length=100, blank=True) def __str__(self) -> str: return f"{self.name}"
Далее
Automated testing with pytest and fixtures
27:17
Просмотров 25 тыс.
НЕВОЗМОЖНЫЙ ЭКСПЕРИМЕНТ
00:39
Просмотров 74 тыс.
A small kitten was dumped #cat #kitten #cutecat
00:41
Faites comme moi
00:14
Просмотров 1,4 млн
Python unit testing - pytest fixtures
13:16
Просмотров 90 тыс.
НЕВОЗМОЖНЫЙ ЭКСПЕРИМЕНТ
00:39
Просмотров 74 тыс.