feat: cleanup test structure and remove BelenConf testing (#639)

This commit is contained in:
Jens
2025-10-14 09:50:50 +02:00
committed by GitHub
parent ff0be420e7
commit 7b4b7907d0
4 changed files with 51 additions and 114 deletions

View File

@@ -35,6 +35,17 @@ class _TestCaseDict(TypedDict): # noqa: PYI049 Private TypedDict `...` is never
expected:_SpecialAttributesDict
@pytest.fixture
def test_extractor(browser_mock:MagicMock, test_bot_config:Config) -> AdExtractor:
"""Provides a fresh AdExtractor instance for testing.
Dependencies:
- browser_mock: Used to mock browser interactions
- test_bot_config: Used to initialize the extractor with a valid configuration
"""
return AdExtractor(browser_mock, test_bot_config)
class TestAdExtractorBasics:
"""Basic synchronous tests for AdExtractor."""

View File

@@ -1,11 +1,7 @@
# SPDX-FileCopyrightText: © Jens Bergmann and contributors
# SPDX-License-Identifier: AGPL-3.0-or-later
# SPDX-ArtifactOfProjectHomePage: https://github.com/Second-Hand-Friends/kleinanzeigen-bot/
"""Unit tests for web_scraping_mixin.py RemoteObject handling.
Copyright (c) 2024, kleinanzeigen-bot contributors.
All rights reserved.
"""
"""Unit tests for web_scraping_mixin.py RemoteObject handling."""
from unittest.mock import AsyncMock, Mock, patch