Ejemplo n.º 1
0
class TestConfig(unittest.TestCase):
    def setUp(self):
        # TODO delete previous folder if it exists
        self.app_name = 'test_application_gitberg_delete'
        self.cf = ConfigFile(appname=self.app_name)
        self.cf.parse()

    def test_config_file_path(self):
        self.assertEqual(
            self.cf.file_path,
            os.path.expanduser(
                '~/.config/{}/config.yaml'.format(
                    self.app_name
                )
            )
        )

    def test_config_parse(self):
        # TODO: set fake prefix dir
        # test prefix dir
        self.cf.data

    def tearDown(self):
        # TODO destroy test folder
        pass
Ejemplo n.º 2
0
 def setUp(self):
     # TODO delete previous folder if it exists
     self.app_name = 'test_application_gitberg_delete'
     self.cf = ConfigFile(appname=self.app_name)
     self.cf.parse()