mirror of
https://github.com/rommapp/romm.git
synced 2026-02-18 00:27:41 +01:00
remove conftest
This commit is contained in:
@@ -1,25 +0,0 @@
|
||||
import os
|
||||
|
||||
import pytest
|
||||
from tasks.update_launchbox_metadata import UpdateLaunchboxMetadataTask
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def task():
|
||||
"""Create a task instance for testing"""
|
||||
return UpdateLaunchboxMetadataTask()
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def sample_zip_content():
|
||||
test_dir = os.path.dirname(__file__)
|
||||
sample_path = os.path.join(test_dir, "fixtures", "sample_metadata.zip")
|
||||
|
||||
with open(sample_path, "rb") as f:
|
||||
return f.read()
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def corrupt_zip_content():
|
||||
"""Create corrupt ZIP content for testing error handling"""
|
||||
return b"not a valid zip file"
|
||||
@@ -3,7 +3,6 @@ from unittest.mock import AsyncMock, MagicMock, patch
|
||||
import pytest
|
||||
from handler.scan_handler import ScanType
|
||||
from tasks.scan_library import ScanLibraryTask, scan_library_task
|
||||
from tasks.tasks import PeriodicTask
|
||||
|
||||
|
||||
class TestScanLibraryTask:
|
||||
|
||||
@@ -17,6 +17,27 @@ from tasks.update_launchbox_metadata import (
|
||||
)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def task() -> UpdateLaunchboxMetadataTask:
|
||||
"""Create a task instance for testing"""
|
||||
return UpdateLaunchboxMetadataTask()
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def sample_zip_content() -> bytes:
|
||||
test_dir = os.path.dirname(__file__)
|
||||
sample_path = os.path.join(test_dir, "fixtures", "sample_metadata.zip")
|
||||
|
||||
with open(sample_path, "rb") as f:
|
||||
return f.read()
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def corrupt_zip_content() -> bytes:
|
||||
"""Create corrupt ZIP content for testing error handling"""
|
||||
return b"not a valid zip file"
|
||||
|
||||
|
||||
class TestUpdateLaunchboxMetadataTask:
|
||||
"""Test suite for UpdateLaunchboxMetadataTask"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user