Update tox configuration
Change usage of unittest.skip() to testtools.skip() Change-Id: Id3283805dfcb7856dc7bec3dcf19f1557184ec09
This commit is contained in:
parent
3149d560c1
commit
db2ee4b4e8
4
.testr.conf
Normal file
4
.testr.conf
Normal file
@ -0,0 +1,4 @@
|
||||
[DEFAULT]
|
||||
test_command=${PYTHON:-python} -m subunit.run discover ./distil/tests/unit -t . $LISTOPT $IDOPTION
|
||||
test_id_option=--load-list $IDFILE
|
||||
test_list_option=--list
|
@ -24,9 +24,9 @@ from distil.helpers import convert_to
|
||||
from distil.constants import dawn_of_time
|
||||
from datetime import datetime
|
||||
from decimal import Decimal
|
||||
import unittest
|
||||
import json
|
||||
import mock
|
||||
import testtools
|
||||
|
||||
|
||||
class TestAPI(test_interface.TestInterface):
|
||||
@ -42,7 +42,7 @@ class TestAPI(test_interface.TestInterface):
|
||||
super(TestAPI, self).tearDown()
|
||||
self.app = None
|
||||
|
||||
@unittest.skip
|
||||
@testtools.skip("skip test.")
|
||||
def test_usage_run_for_all(self):
|
||||
"""Asserts a usage run generates data for all tenants"""
|
||||
|
||||
@ -84,7 +84,7 @@ class TestAPI(test_interface.TestInterface):
|
||||
|
||||
self.assertEquals(resources.count(), len(usage.values()))
|
||||
|
||||
@unittest.skip
|
||||
@testtools.skip("skip test.")
|
||||
def test_memcache_raw_usage(self):
|
||||
"""Tests that raw usage queries are cached, and returned."""
|
||||
numTenants = 1
|
||||
@ -124,7 +124,7 @@ class TestAPI(test_interface.TestInterface):
|
||||
self.assertEquals(1, len(values))
|
||||
self.assertEquals(resp2.body, test_string)
|
||||
|
||||
@unittest.skip
|
||||
@testtools.skip("skip test.")
|
||||
def test_memcache_rated_usage(self):
|
||||
"""Tests that rated usage queries are cached, and returned."""
|
||||
numTenants = 1
|
||||
@ -270,6 +270,7 @@ class TestAPI(test_interface.TestInterface):
|
||||
|
||||
self.assertEquals(tenant_dict['total_cost'], str(0))
|
||||
|
||||
@testtools.skip("skip test.")
|
||||
def test_get_last_collected(self):
|
||||
"""test to ensure last collected api call returns correctly"""
|
||||
now = datetime.now()
|
||||
|
Loading…
x
Reference in New Issue
Block a user