Skip to content

Commit 03233b3

Browse files
committed
Update imports and test exclusions for Shiny evaluation
Changed import of ShinyTestGenerator to use a relative path in create_test_metadata.py. Updated test_shiny_import.py to exclude '/testing/evaluation/apps/' from the tested paths.
1 parent 88d46de commit 03233b3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

shiny/testing/evaluation/scripts/create_test_metadata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from itertools import islice
33
from pathlib import Path
44

5-
from shiny.testing import ShinyTestGenerator
5+
from ...generator import ShinyTestGenerator
66

77

88
def generate_shiny_test_metadata(

tests/pytest/test_shiny_import.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def test_shiny_import_itself():
3333
for path in shiny_files
3434
if "/api-examples/" not in path
3535
and "/templates/" not in path
36+
and "/testing/evaluation/apps/" not in path
3637
and Path(path).is_file()
3738
]
3839

0 commit comments

Comments
 (0)