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

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

    ModelRegistry.unregister(ObjectFile)
    del ObjectFile
Beispiel #3
0
def test_load_lookup():

    class ObjectYAML(Model):
        __yaml__ = 'object'

    ModelRegistry.unregister(ObjectYAML)
    del ObjectYAML
Beispiel #4
0
def test_load_from_attribute_ext():

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

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

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

    ModelRegistry.unregister(ObjectYAML)
    del ObjectYAML