mirror of
https://github.com/django-components/django-components.git
synced 2025-09-14 01:46:16 +00:00
Add pytest-cov
Apply black formatting Add component_css_dependencies_tag and component_js_dependencies_tag tags Add convenience methods render_css_dependencies and render_js_dependencies to component class Create additional test cases Add license to setup.py Add pytest.ini config file
This commit is contained in:
parent
e9929b1bff
commit
2c644d4c06
8 changed files with 199 additions and 66 deletions
|
@ -1,9 +1,11 @@
|
|||
class AlreadyRegistered(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class NotRegistered(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class ComponentRegistry(object):
|
||||
def __init__(self):
|
||||
self._registry = {} # component name -> component_class mapping
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue