Skip to content

Commit

Permalink
fix test_load_dynamic_import_manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
Niicck committed Jul 12, 2024
1 parent 872403d commit a12b5b6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/tests/test_asset_loader.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import pytest

from pathlib import Path
from django.conf import settings
from django_vite.core.asset_loader import DjangoViteConfig, ManifestClient
from django_vite.templatetags.django_vite import DjangoViteAssetLoader
from django_vite.apps import check_loader_instance
Expand Down Expand Up @@ -133,17 +135,20 @@ def test_parse_manifest_during_dev_mode(dev_mode_true):
[
{
"DJANGO_VITE_DEV_MODE": False,
"DJANGO_VITE_MANIFEST_PATH": "dynamic-entry-manifest.json",
"DJANGO_VITE_MANIFEST_PATH": Path(settings.STATIC_ROOT)
/ "dynamic-entry-manifest.json",
},
{
"DJANGO_VITE": {
"default": {
"dev_mode": False,
"manifest_path": "dynamic-entry-manifest.json",
"manifest_path": Path(settings.STATIC_ROOT)
/ "dynamic-entry-manifest.json",
}
}
},
],
indirect=True,
)
def test_load_dynamic_import_manifest(patch_settings):
warnings = check_loader_instance()
Expand Down

0 comments on commit a12b5b6

Please sign in to comment.