Beispiel #1
0
    def test__get_origin_data_normal_only(self):
        tempdir = tempfile.mkdtemp()
        with open(os.path.join(tempdir, 'snapcraft.yaml'), 'w') as fp:
            fp.write("")

        _get_origin_data(tempdir)
        shutil.rmtree(tempdir)
Beispiel #2
0
    def test__get_origin_data_normal_only(self):
        tempdir = tempfile.mkdtemp()
        with open(os.path.join(tempdir, 'snapcraft.yaml'), 'w') as fp:
            fp.write("")

        _get_origin_data(tempdir)
        shutil.rmtree(tempdir)
Beispiel #3
0
    def test__get_origin_data_normal_only(self):
        with open(os.path.join(self.tempdir_path,
                  'snapcraft.yaml'), 'w') as fp:
            fp.write("")

        _get_origin_data(self.tempdir_path)
Beispiel #4
0
    def test__get_origin_data_normal_only(self):
        with open(os.path.join(self.tempdir_path,
                  'snapcraft.yaml'), 'w') as fp:
            fp.write("")

        _get_origin_data(self.tempdir_path)
Beispiel #5
0
    def test__get_origin_data_hidden_only(self):
        with open(os.path.join(self.tempdir_path, ".snapcraft.yaml"), "w") as fp:
            fp.write("")

        _get_origin_data(self.tempdir_path)
Beispiel #6
0
    def test__get_origin_data_hidden_only(self):
        with open(os.path.join(self.tempdir_path, ".snapcraft.yaml"),
                  "w") as fp:
            fp.write("")

        _get_origin_data(self.tempdir_path)