From 8be03e8ab5f102a60066334c741ceade2474d1ce Mon Sep 17 00:00:00 2001 From: Stefan Hesse Date: Fri, 7 Feb 2025 08:03:03 +0200 Subject: [PATCH] removing redundant comments --- tests/deduplication_tests.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/deduplication_tests.py b/tests/deduplication_tests.py index e0bf15e9..dd6a16d7 100644 --- a/tests/deduplication_tests.py +++ b/tests/deduplication_tests.py @@ -142,17 +142,14 @@ def test_dedup(): def test_sample_tokens(monkeypatch): "Test token sampling functions including fallback for non-latin text" - # Create spy counters - call_counter = {'fallback': 0, 'main': 0} - # Store original function + call_counter = {'fallback': 0, 'main': 0} original_fallback = trafilatura.deduplication.sample_tokens_fallback def spy_fallback(*args, **kwargs): call_counter['fallback'] += 1 return original_fallback(*args, **kwargs) - # Patch the fallback function monkeypatch.setattr(trafilatura.deduplication, 'sample_tokens_fallback', spy_fallback) # Test regular text