コード例 #1
0
    def test_to_path_list(self):
        key_list = [self.key("/hello"), self.key("/hello/goodbye")]

        expected_list = ["/hello", "/hello/goodbye"]

        actual_list = akfilter.to_path_list(key_list)
        self.assertEqual(expected_list, actual_list)
コード例 #2
0
    def test_to_path_list(self):
        key_list = [
            self.key("/hello"),
            self.key("/hello/goodbye")
        ]

        expected_list = [
            "/hello",
            "/hello/goodbye"
        ]

        actual_list = akfilter.to_path_list(key_list)
        self.assertEqual(expected_list, actual_list)
コード例 #3
0
ファイル: search_updater.py プロジェクト: kyle-long/pyshelf
    def load_path_list(self):
        """
            Loads a list of artifact paths from the cloud.  This does
            NOT include metadata or special private data.

            Returns:
                List(basestring)
        """
        with self.bucket_container.create_cloud_storage() as storage:
            artifact_list = storage.get_directory_contents("", True)
            path_list = filters.to_path_list(artifact_list)
            path_list = filters.directories(path_list)
            path_list = filters.all_private(path_list)

        return path_list
コード例 #4
0
ファイル: search_updater.py プロジェクト: fidian/pyshelf
    def load_path_list(self):
        """
            Loads a list of artifact paths from the cloud.  This does
            NOT include metadata or special private data.

            Returns:
                List(basestring)
        """
        with self.bucket_container.create_cloud_storage() as storage:
            artifact_list = storage.get_directory_contents("", True)
            path_list = filters.to_path_list(artifact_list)
            path_list = filters.directories(path_list)
            path_list = filters.all_private(path_list)

        return path_list