Use SQLite

This commit is contained in:
Joakim Hellsén 2024-03-28 02:58:22 +01:00
commit 20f38de611
No known key found for this signature in database
GPG key ID: D196AE66FEBE1DC9
8 changed files with 11 additions and 91 deletions

View file

@ -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."""