Skip to content

Commit

Permalink
tests: move system tests into a package (#51)
Browse files Browse the repository at this point in the history
Prep for factoring out e.g. signing tests into separate modules.

Port of googleapis/google-cloud-python#9777
into new reposiory.
  • Loading branch information
tseaver committed Feb 12, 2020
1 parent fe434fc commit b9c0bca
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/system.py → tests/system/test_system.py
Expand Up @@ -40,6 +40,8 @@


USER_PROJECT = os.environ.get("GOOGLE_CLOUD_TESTS_USER_PROJECT")
DIRNAME = os.path.realpath(os.path.dirname(__file__))
DATA_DIRNAME = os.path.abspath(os.path.join(DIRNAME, "..", "data"))


def _bad_copy(bad_request):
Expand Down Expand Up @@ -451,11 +453,10 @@ def test_bucket_get_blob_with_user_project(self):

class TestStorageFiles(unittest.TestCase):

DIRNAME = os.path.realpath(os.path.dirname(__file__))
FILES = {
"logo": {"path": DIRNAME + "/data/CloudPlatform_128px_Retina.png"},
"big": {"path": DIRNAME + "/data/five-point-one-mb-file.zip"},
"simple": {"path": DIRNAME + "/data/simple.txt"},
"logo": {"path": DATA_DIRNAME + "/CloudPlatform_128px_Retina.png"},
"big": {"path": DATA_DIRNAME + "/five-point-one-mb-file.zip"},
"simple": {"path": DATA_DIRNAME + "/simple.txt"},
}

@classmethod
Expand Down

0 comments on commit b9c0bca

Please sign in to comment.