fix: tests and linters
This commit is contained in:
7 files changed
+122
-131
No files matched your search
@@ -4,6 +4,7 @@ from __future__ import annotations
|
||||
|
||||
import tempfile
|
||||
import unittest
|
||||
from unittest.mock import MagicMock
|
||||
|
||||
from zyrarbot.application import Application
|
||||
from zyrarbot.settings import Settings
|
||||
@@ -49,7 +50,11 @@ class ApiSurfaceTest(unittest.TestCase):
|
||||
uploads_dir=f"{cls._workdir.name}/uploads",
|
||||
static_dir=f"{cls._workdir.name}/static",
|
||||
)
|
||||
cls.spec = Application(settings).web.openapi()
|
||||
persistence = MagicMock()
|
||||
persistence.config = MagicMock()
|
||||
persistence.history = MagicMock()
|
||||
persistence.queues = MagicMock()
|
||||
cls.spec = Application(settings, persistence=persistence).web.openapi()
|
||||
|
||||
@classmethod
|
||||
def tearDownClass(cls) -> None:
|
||||
|
||||
Reference in new issue
Block a user