Skip to content
This repository was archived by the owner on Mar 4, 2026. It is now read-only.

Commit d9ad148

Browse files
committed
fix: fix broken test suite
1 parent c4387d8 commit d9ad148

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/test_mkdocs_site_urls.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
from unittest.mock import MagicMock
33

44
import pytest
5-
from resolve_absolute_urls.plugin import ResolveAbsoluteUrlsPlugin
5+
6+
from mkdocs_site_urls import SiteUrlsPlugin
67

78

89
@pytest.fixture
@@ -15,7 +16,7 @@ def create_plugin(mock_plugin_config):
1516
"""Factory function to create the plugin with the prescribed configuration options."""
1617

1718
def _plugin(config=mock_plugin_config, **kwargs):
18-
plugin = ResolveAbsoluteUrlsPlugin()
19+
plugin = SiteUrlsPlugin()
1920
plugin.load_config(config)
2021
for key, value in kwargs.items():
2122
setattr(plugin, key, value)
@@ -94,7 +95,7 @@ def test_on_config_sets_regex(
9495
match_group3,
9596
should_match,
9697
):
97-
"""Test the on_config method of the ResolveAbsoluteUrlsPlugin."""
98+
"""Test the on_config method of the SiteUrlsPlugin."""
9899
plugin_config = {
99100
"attributes": attributes,
100101
"prefix": prefix,
@@ -124,7 +125,7 @@ def test_on_config_sets_regex(
124125
ids=["trailing_slash", "no_trailing_slash"],
125126
)
126127
def test_on_page_content(create_plugin, site_url):
127-
"""Test the on_page_content method of the ResolveAbsoluteUrlsPlugin."""
128+
"""Test the on_page_content method of the SiteUrlsPlugin."""
128129
plugin = create_plugin(
129130
{
130131
"attributes": ["src", "data"],

0 commit comments

Comments
 (0)