File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 4040
4141
4242USER_PROJECT = os .environ .get ("GOOGLE_CLOUD_TESTS_USER_PROJECT" )
43+ DIRNAME = os .path .realpath (os .path .dirname (__file__ ))
44+ DATA_DIRNAME = os .path .abspath (os .path .join (DIRNAME , ".." , "data" ))
4345
4446
4547def _bad_copy (bad_request ):
@@ -460,11 +462,10 @@ def test_bucket_get_blob_with_user_project(self):
460462
461463class TestStorageFiles (unittest .TestCase ):
462464
463- DIRNAME = os .path .realpath (os .path .dirname (__file__ ))
464465 FILES = {
465- "logo" : {"path" : DIRNAME + "/data /CloudPlatform_128px_Retina.png" },
466- "big" : {"path" : DIRNAME + "/data /five-point-one-mb-file.zip" },
467- "simple" : {"path" : DIRNAME + "/data /simple.txt" },
466+ "logo" : {"path" : DATA_DIRNAME + "/CloudPlatform_128px_Retina.png" },
467+ "big" : {"path" : DATA_DIRNAME + "/five-point-one-mb-file.zip" },
468+ "simple" : {"path" : DATA_DIRNAME + "/simple.txt" },
468469 }
469470
470471 @classmethod
You can’t perform that action at this time.
0 commit comments