From 0bf7c8377bb59f0b480efee9d600d2471da0c139 Mon Sep 17 00:00:00 2001 From: Winston Chang Date: Fri, 26 Jul 2024 14:56:52 -0500 Subject: [PATCH] Ensure assets are present when running dep tests --- tests/test_deps.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_deps.py b/tests/test_deps.py index b88f48f..131091b 100644 --- a/tests/test_deps.py +++ b/tests/test_deps.py @@ -4,6 +4,8 @@ import pytest +import shinylive._assets + def test_requirements_txt(): from shinylive._deps import _find_packages_in_requirements @@ -36,6 +38,9 @@ def test_requirements_txt(): allow_module_level=True, ) +# Make sure assets are present before continuing with the tests. +shinylive._assets.ensure_shinylive_assets() + def test_module_to_package_key(): from shinylive._deps import module_to_package_key