# SPDX-License-Identifier: MIT # Copyright (c) 2026 Rug Munch Media LLC # # Part of Pry — https://git.rugmunch.io/RugMunchMedia/pryscraper # Licensed under MIT. See LICENSE. """Tests for SEO content monitor.""" from seo_monitor import ( _count_words, _get_headings, _get_meta_from_html, _get_title_from_html, _has_schema, ) def test_get_title_from_html() -> None: html = "
Hello world this is a test
" assert _count_words(html) == 6 def test_get_headings() -> None: from lxml import html as lxml_html tree = lxml_html.fromstring( "No schema here
" assert _has_schema(html) is False