Skip to content

Commit 18e8b56

Browse files
committed
fix: Remove old global field test imports from __init__.py
- Removed TestGlobalFieldInit (class doesn't exist) - Removed TestGlobalFieldFetch (class doesn't exist) - Removed TestGlobalFieldFind (class doesn't exist) - pytest auto-discovers new global field test classes - Fixes ImportError causing 23 test collection failures
1 parent 3ae0ec1 commit 18e8b56

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

tests/__init__.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212
from .test_entry import TestEntry
1313
from .test_query import TestQuery
1414
from .test_stack import TestStack
15-
from .test_global_fields import TestGlobalFieldInit
16-
from .test_early_fetch import TestGlobalFieldFetch
17-
from .test_early_find import TestGlobalFieldFind
15+
# Removed old imports - pytest auto-discovers tests
16+
# from .test_global_fields import TestGlobalFieldInit # Old class, doesn't exist
17+
# from .test_early_fetch import TestGlobalFieldFetch # Old class, doesn't exist
18+
# from .test_early_find import TestGlobalFieldFind # Old class, doesn't exist
1819
from .test_live_preview import TestLivePreviewConfig
1920
from .test_taxonomies import TestTaxonomyAPI
2021

@@ -25,18 +26,13 @@ def all_tests():
2526
test_module_entry = TestLoader().loadTestsFromTestCase(TestEntry)
2627
test_module_query = TestLoader().loadTestsFromTestCase(TestQuery)
2728
test_module_live_preview = TestLoader().loadTestsFromTestCase(TestLivePreviewConfig)
28-
test_module_globalFields = TestLoader().loadTestsFromName(TestGlobalFieldInit)
29-
test_module_globalFields_fetch = TestLoader().loadTestsFromName(TestGlobalFieldFetch)
30-
test_module_globalFields_find = TestLoader().loadTestsFromName(TestGlobalFieldFind)
29+
# Removed old global field test references - pytest auto-discovers new test classes
3130
test_module_taxonomies = TestLoader().loadTestsFromTestCase(TestTaxonomyAPI)
3231
TestSuite([
3332
test_module_stack,
3433
test_module_asset,
3534
test_module_entry,
3635
test_module_query,
3736
test_module_live_preview,
38-
test_module_globalFields,
39-
test_module_globalFields_fetch,
40-
test_module_globalFields_find,
4137
test_module_taxonomies
4238
])

0 commit comments

Comments
 (0)