File tree Expand file tree Collapse file tree 9 files changed +20
-33
lines changed Expand file tree Collapse file tree 9 files changed +20
-33
lines changed Original file line number Diff line number Diff line change 1
1
include README.rst
2
2
graft gcloud
3
3
global-exclude *.pyc
4
- recursive-exclude system_tests *
Original file line number Diff line number Diff line change 1
1
[nosetests]
2
- ignore-files = run_system_test\.py
2
+ exclude-dir = system_tests
3
3
4
4
[bdist_wheel]
5
5
universal = 1
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 26
26
import subprocess
27
27
import sys
28
28
29
+ from run_system_test import run_module_tests
30
+
31
+
29
32
MODULES = (
30
33
'datastore' ,
31
34
'storage' ,
@@ -102,9 +105,6 @@ def prepare_to_run():
102
105
def main ():
103
106
"""Run all the system tests if necessary."""
104
107
prepare_to_run ()
105
-
106
- sys .path .append (ROOT_DIR )
107
- from system_tests .run_system_test import run_module_tests
108
108
for module in MODULES :
109
109
run_module_tests (module )
110
110
Original file line number Diff line number Diff line change 27
27
from gcloud .exceptions import Conflict
28
28
# This assumes the command is being run via tox hence the
29
29
# repository root is the current directory.
30
- from system_tests import clear_datastore
31
- from system_tests import populate_datastore
32
- from system_tests . system_test_utils import EmulatorCreds
30
+ import clear_datastore
31
+ import populate_datastore
32
+ from system_test_utils import EmulatorCreds
33
33
34
34
35
35
class Config (object ):
Original file line number Diff line number Diff line change 22
22
from gcloud .environment_vars import PUBSUB_EMULATOR
23
23
from gcloud .environment_vars import TESTS_PROJECT
24
24
from gcloud import pubsub
25
- from system_tests . system_test_utils import EmulatorCreds
25
+ from system_test_utils import EmulatorCreds
26
26
27
27
28
28
DEFAULT_TOPIC_NAME = 'subscribe-me%d' % (1000 * time .time (),)
Original file line number Diff line number Diff line change 28
28
from gcloud .environment_vars import GCD_DATASET
29
29
from gcloud .environment_vars import GCD_HOST
30
30
from gcloud .environment_vars import PUBSUB_EMULATOR
31
- from system_tests . run_system_test import run_module_tests
31
+ from run_system_test import run_module_tests
32
32
33
33
34
34
PACKAGE_INFO = {
Original file line number Diff line number Diff line change 18
18
19
19
# This assumes the command is being run via tox hence the
20
20
# repository root is the current directory.
21
- from system_tests import bigquery
22
- from system_tests import datastore
23
- from system_tests import pubsub
24
- from system_tests import storage
25
- from system_tests import system_test_utils
21
+ import bigquery
22
+ import datastore
23
+ import pubsub
24
+ import storage
25
+ import system_test_utils
26
26
27
27
28
28
REQUIREMENTS = {
Original file line number Diff line number Diff line change @@ -7,12 +7,13 @@ commands =
7
7
nosetests
8
8
deps =
9
9
nose
10
+ nose-exclude
10
11
unittest2
11
12
setenv =
12
13
PYTHONPATH = {toxinidir}/_testing
13
14
covercmd =
14
15
nosetests \
15
- --ignore-files =run_system_test\.py \
16
+ --exclude-dir =system_tests \
16
17
--with-coverage \
17
18
--cover-package =gcloud \
18
19
--cover-erase \
@@ -84,21 +85,21 @@ passenv = {[testenv:system-tests]passenv}
84
85
basepython =
85
86
python2.7
86
87
commands =
87
- python {toxinidir}/scripts /attempt_system_tests.py
88
+ python {toxinidir}/system_tests /attempt_system_tests.py
88
89
passenv = GOOGLE_* GCLOUD_* TRAVIS* encrypted_*
89
90
90
91
[testenv:system-tests3]
91
92
basepython =
92
93
python3.4
93
94
commands =
94
- python {toxinidir}/scripts /attempt_system_tests.py
95
+ python {toxinidir}/system_tests /attempt_system_tests.py
95
96
passenv = {[testenv:system-tests]passenv}
96
97
97
98
[testenv:datastore-emulator]
98
99
basepython =
99
100
python2.7
100
101
commands =
101
- python {toxinidir}/scripts /run_emulator.py --package =datastore
102
+ python {toxinidir}/system_tests /run_emulator.py --package =datastore
102
103
setenv =
103
104
PYTHONPATH = {toxinidir}/_testing
104
105
GCLOUD_NO_PRINT =true
@@ -110,6 +111,6 @@ deps =
110
111
basepython =
111
112
python2.7
112
113
commands =
113
- python {toxinidir}/scripts /run_emulator.py --package =pubsub
114
+ python {toxinidir}/system_tests /run_emulator.py --package =pubsub
114
115
passenv = GCLOUD_*
115
116
deps = {[testenv:datastore-emulator]deps}
You can’t perform that action at this time.
0 commit comments