Use SQLite
This commit is contained in:
parent
942965d262
commit
20f38de611
8 changed files with 11 additions and 91 deletions
|
|
@ -9,7 +9,6 @@ from django.test import Client, TestCase
|
|||
from django.urls import reverse
|
||||
|
||||
from feedvault.models import Domain, Entry, Feed, UserUploadedFile
|
||||
from feedvault.stats import get_db_size
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from django.http import HttpResponse
|
||||
|
|
@ -238,14 +237,6 @@ class TestSitemap(TestCase):
|
|||
assert "urlset" in response2.content.decode(), f"Expected 'urlset' in response, got {response2.content}"
|
||||
|
||||
|
||||
class TestStats(TestCase):
|
||||
def test_db_size(self) -> None:
|
||||
"""Test if the database size is returned."""
|
||||
response: str = get_db_size()
|
||||
assert isinstance(response, str), f"Expected a string, got {response}"
|
||||
assert "kB" in response, f"Expected 'kB' in response, got {response}"
|
||||
|
||||
|
||||
class TestSearch(TestCase):
|
||||
def setUp(self) -> None:
|
||||
"""Create a test feed."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue