mirror of
https://github.com/django-components/django-components.git
synced 2025-08-30 18:57:20 +00:00
* refactor: Cache components' JS and CSS scripts at class creation time * refactor: add test for no template_rendered signal for component with no template
This commit is contained in:
parent
007009a480
commit
c692b7a310
13 changed files with 138 additions and 58 deletions
|
@ -50,8 +50,6 @@ class TestImportLibraries:
|
|||
}
|
||||
)
|
||||
def test_import_libraries(self):
|
||||
# Ensure we start with a clean state
|
||||
registry.clear()
|
||||
all_components = registry.all().copy()
|
||||
assert "single_file_component" not in all_components
|
||||
assert "multi_file_component" not in all_components
|
||||
|
@ -80,8 +78,6 @@ class TestImportLibraries:
|
|||
}
|
||||
)
|
||||
def test_import_libraries_map_modules(self):
|
||||
# Ensure we start with a clean state
|
||||
registry.clear()
|
||||
all_components = registry.all().copy()
|
||||
assert "single_file_component" not in all_components
|
||||
assert "multi_file_component" not in all_components
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue