Skip to content

Commit

Permalink
Merge pull request #37 from projectgus/bugfix/sitemap_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
justinmayer authored Nov 4, 2024
2 parents d288c85 + 30d59fb commit 89f32c2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pelican/plugins/sitemap/test_sitemap.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import importlib.resources
from pathlib import Path
from shutil import rmtree
from tempfile import mkdtemp
Expand All @@ -8,7 +9,7 @@

from . import sitemap

BASE_DIR = Path(".").resolve()
BASE_DIR = importlib.resources.files(__package__)
TEST_DATA = BASE_DIR / "test_data"


Expand All @@ -24,6 +25,7 @@ def tearDown(self):
def _run_pelican(self, sitemap_format):
settings = read_settings(
override={
"PATH": BASE_DIR,
"CACHE_CONTENT": False,
"SITEURL": "http://localhost",
"CONTENT": TEST_DATA,
Expand Down

0 comments on commit 89f32c2

Please sign in to comment.