from __future__ import annotations from conftest import fixture_text from companyatlas.sdk import normalize as N def test_noise_normalisation_replaces_dates_times_counters_tokens() -> None: s = "Updated 3 minutes ago on 2024-05-01 at 10:34 PM · March 5, 2024 · © 2024 Acme · 1,234 views · token=abcdef0123456789abcdef0123456789 ?v=123&x=1" n = N.normalized_text(s) assert "" in n and "" in n and "