Annotating slower tests and excluding them from travis. · ericbolo/python-docs-samples@327326b · GitHub
Skip to content

Commit 327326b

Browse files
author
Jon Wayne Parrott
committed
Annotating slower tests and excluding them from travis.
1 parent dc48bd1 commit 327326b

5 files changed

Lines changed: 36 additions & 5 deletions

File tree

bigquery/api/export_data_to_cloud_storage_test.py

Lines changed: 2 additions & 0 deletions

bigquery/api/load_data_from_csv_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@
1414
"""Tests for load_data_from_csv."""
1515
import os
1616

17+
from nose.plugins.attrib import attr
1718
from tests import CloudBaseTest
1819

1920
from .load_data_from_csv import main
2021

2122

23+
@attr('slow')
2224
class TestLoadDataFromCSV(CloudBaseTest):
2325
dataset_id = 'test_dataset'
2426
table_id = 'test_import_table'

compute/api/create_instance_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
1313

14+
from nose.plugins.attrib import attr
1415
import tests
1516

1617
from .create_instance import main
1718

1819

20+
@attr('slow')
1921
class TestComputeGettingStarted(tests.CloudBaseTest):
2022

2123
def test_main(self):

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ waitress==0.8.10
1515
WebOb==1.4.1
1616
WebTest==2.0.18
1717
Werkzeug==0.10.4
18+
nose-timer

tox.ini

Lines changed: 29 additions & 5 deletions

0 commit comments

Comments
 (0)