mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-01-31 11:51:39 +03:00
Add nocover modified for DeclarativeCatalog __getattr__(), __setattr__(), __delattr__()
This commit is contained in:
parent
801716fd92
commit
b29387abdd
|
@ -734,7 +734,7 @@ class DeclarativeCatalog(object):
|
||||||
delattr(cls, name)
|
delattr(cls, name)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def __getattr__(cls, name):
|
def __getattr__(cls, name): # pragma: no cover
|
||||||
"""Return provider with specified name or raise en error.
|
"""Return provider with specified name or raise en error.
|
||||||
|
|
||||||
:param name: Attribute's name
|
:param name: Attribute's name
|
||||||
|
@ -745,7 +745,7 @@ class DeclarativeCatalog(object):
|
||||||
raise NotImplementedError('Implementated in metaclass')
|
raise NotImplementedError('Implementated in metaclass')
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def __setattr__(cls, name, value):
|
def __setattr__(cls, name, value): # pragma: no cover
|
||||||
"""Handle setting of catalog attributes.
|
"""Handle setting of catalog attributes.
|
||||||
|
|
||||||
Setting of attributes works as usual, but if value of attribute is
|
Setting of attributes works as usual, but if value of attribute is
|
||||||
|
@ -763,7 +763,7 @@ class DeclarativeCatalog(object):
|
||||||
raise NotImplementedError('Implementated in metaclass')
|
raise NotImplementedError('Implementated in metaclass')
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def __delattr__(cls, name):
|
def __delattr__(cls, name): # pragma: no cover
|
||||||
"""Handle deleting of catalog attibute.
|
"""Handle deleting of catalog attibute.
|
||||||
|
|
||||||
Deleting of attributes works as usual, but if value of attribute is
|
Deleting of attributes works as usual, but if value of attribute is
|
||||||
|
|
Loading…
Reference in New Issue
Block a user