Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions storage/tests/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,15 @@ def test_list_files(self):
self.assertEqual(sorted(blob.name for blob in all_blobs),
sorted(self.FILENAMES))

@unittest.skipUnless(USER_PROJECT, 'USER_PROJECT not set in environment.')
@RetryErrors(unittest.TestCase.failureException)
def test_list_files_with_user_project(self):
with_user_project = Config.CLIENT.bucket(
self.bucket.name, user_project=USER_PROJECT)
all_blobs = list(with_user_project.list_blobs())

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

self.assertEqual(sorted(blob.name for blob in all_blobs),
sorted(self.FILENAMES))

@RetryErrors(unittest.TestCase.failureException)
def test_paginate_files(self):
truncation_size = 1
Expand Down