feat: expand platform APIs, sources, and test coverage
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
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
This commit is contained in:
17
tests/apps/backups/test_models.py
Normal file
17
tests/apps/backups/test_models.py
Normal file
@@ -0,0 +1,17 @@
|
||||
"""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]")
|
||||
Reference in New Issue
Block a user