Esempio n. 1
0
def test_load_from_name():
    class ObjectFile(Model):
        # here is no __yaml__ attribute
        pass

    ModelRegistry.unregister(ObjectFile)
    del ObjectFile
Esempio n. 2
0
def test_load_from_name():
    class ObjectFile(Model):
        # here is no __yaml__ attribute
        pass

    ModelRegistry.unregister(ObjectFile)
    del ObjectFile
Esempio n. 3
0
def test_load_lookup():

    class ObjectYAML(Model):
        __yaml__ = 'object'

    ModelRegistry.unregister(ObjectYAML)
    del ObjectYAML
Esempio n. 4
0
def test_load_from_attribute_ext():

    class ObjectYAML(Model):
        __yaml__ = 'object.yaml'

    ModelRegistry.unregister(ObjectYAML)
    del ObjectYAML
Esempio n. 5
0
def test_load_lookup():
    class ObjectYAML(Model):
        __yaml__ = 'object'

    ModelRegistry.unregister(ObjectYAML)
    del ObjectYAML
Esempio n. 6
0
def test_load_from_attribute_ext():
    class ObjectYAML(Model):
        __yaml__ = 'object.yaml'

    ModelRegistry.unregister(ObjectYAML)
    del ObjectYAML