Some checks failed
CI/CD Pipeline / Run Tests (pull_request) Successful in 1m53s
CI/CD Pipeline / Telegram Notify Success (push) Has been cancelled
CI/CD Pipeline / Run Tests (push) Has been cancelled
CI/CD Pipeline / Code Quality Checks (push) Has been cancelled
CI/CD Pipeline / Code Quality Checks (pull_request) Failing after 2m54s
CI/CD Pipeline / Telegram Notify Success (pull_request) Has been skipped
18 lines
474 B
Python
18 lines
474 B
Python
"""Tests for backups models."""
|
|
|
|
from datetime import date
|
|
|
|
from apps.backups.models import BackupExportJob
|
|
from django.test import TestCase
|
|
|
|
|
|
class BackupExportJobModelTest(TestCase):
|
|
def test_string_representation(self):
|
|
job = BackupExportJob.objects.create(
|
|
actual_date=date(2026, 3, 17),
|
|
status=BackupExportJob.Status.SUCCESS,
|
|
task_id="task-1",
|
|
)
|
|
|
|
self.assertEqual(str(job), "Backup 2026-03-17 [success]")
|