Exemple #1
0
    def test_clone_empty_config_repo(self):
        config = {
            'mlgit_path': './mdata',
            'mlgit_conf': 'config.yaml',
            'verbose': 'info',
            DATASETS: {'git': '', },
            LABELS: {'git': '', },
            MODELS: {'git': '', }, }

        m = Metadata('', self.test_dir, config, DATASETS)
        m.clone_config_repo()
        self.assertFalse(m.check_exists())
Exemple #2
0
    def test_clone_empty_config_repo(self):
        config = {
            'mlgit_path': './mdata',
            'mlgit_conf': 'config.yaml',
            'verbose': 'info',
            'dataset': {
                'git': '',
            },
            'labels': {
                'git': '',
            },
            'model': {
                'git': '',
            },
        }

        m = Metadata('', self.test_dir, config, repotype)
        m.clone_config_repo()
        self.assertFalse(m.check_exists())
Exemple #3
0
 def clone_config(self, url, folder=None, track=False):
     if clone_config_repository(url, folder, track):
         self.__config = config_load()
         m = Metadata('', get_metadata_path(self.__config), self.__config)
         m.clone_config_repo()
Exemple #4
0
 def test_clone_config_repo(self):
     m = Metadata('', self.test_dir, config, repotype)
     m.clone_config_repo()
     self.assertTrue(m.check_exists())