def test_config(): """ test that we can load a comfig """ l = Lib(resource_root) obj = l.get_config() assert obj == { "qwerty": "qwerty" }
def test_classes(): """ Test that classes get properly loaded """ l = Lib(resource_root) classes = list(l.get_classes()) assert classes == ['class1'] klass = l.get_class('class1') assert klass == {"Hello": "World"}
def test_dockerfiles(): """ Test that we can list dockerfiles """ l = Lib(resource_root) files = list(l.get_dockerfiles()) assert files == ["TestImage"] assert (os.path.join( resource_root, 'dockerfiles', 'TestImage' ) == l.get_dockerfile('TestImage'))
def test_containers(): """ test that we can load a container """ l = Lib(resource_root) containers = list(l.get_containers()) assert ['c1', 'c2'] == containers