Coverage for books/tests/test_models.py: 100.00%
10 statements
« prev ^ index » next coverage.py v7.16.2, created at 2026-10-16 10:24 -0700
« prev ^ index » next coverage.py v7.16.2, created at 2026-10-16 10:24 -0700
1from django.test import TestCase 1a
3from accounts.tests.factories import UserFactory 1a
5from .factories import BookFactory 1a
7# from ..models import Book
10class BookTests(TestCase): 1a
11 def setUp(self): 1a
12 self.user = UserFactory() 1a
13 self.book = BookFactory() 1a
15 def test__str__(self): 1a
16 assert self.book.__str__() == self.book.title 1a
17 assert str(self.book) == self.book.title 1a