diff options
Diffstat (limited to 'xtesting/tests')
-rw-r--r-- | xtesting/tests/unit/ci/test_tier_handler.py | 4 | ||||
-rw-r--r-- | xtesting/tests/unit/core/test_testcase.py | 6 | ||||
-rw-r--r-- | xtesting/tests/unit/utils/test_decorators.py | 3 |
3 files changed, 8 insertions, 5 deletions
diff --git a/xtesting/tests/unit/ci/test_tier_handler.py b/xtesting/tests/unit/ci/test_tier_handler.py index 668f33cc..95dcfdc6 100644 --- a/xtesting/tests/unit/ci/test_tier_handler.py +++ b/xtesting/tests/unit/ci/test_tier_handler.py @@ -26,8 +26,8 @@ class TierHandlerTesting(unittest.TestCase): self.testcase = tier_handler.TestCase( 'test_name', 'true', False, 'test_criteria', True, description='test_desc', project='project_name') - self.testcase.str = self.testcase.__str__() - self.tier.str = self.tier.__str__() + self.testcase.str = str(self.testcase) + self.tier.str = str(self.tier) def test_add_test(self): self.tier.add_test(self.test) diff --git a/xtesting/tests/unit/core/test_testcase.py b/xtesting/tests/unit/core/test_testcase.py index dbefd974..f7d1b940 100644 --- a/xtesting/tests/unit/core/test_testcase.py +++ b/xtesting/tests/unit/core/test_testcase.py @@ -180,7 +180,8 @@ class TestCaseTesting(unittest.TestCase): args[0].assert_called_once_with( os.environ['TEST_DB_URL'], data=json.dumps(payload, sort_keys=True), - headers=self._headers) + headers=self._headers, + timeout=10) def test_pushdb_daily_job(self): self._test_pushdb_version(version="master") @@ -203,7 +204,8 @@ class TestCaseTesting(unittest.TestCase): mock_function.assert_called_once_with( os.environ['TEST_DB_URL'], data=json.dumps(self._get_data(), sort_keys=True), - headers=self._headers) + headers=self._headers, + timeout=10) def test_check_requirements(self): self.test.check_requirements() diff --git a/xtesting/tests/unit/utils/test_decorators.py b/xtesting/tests/unit/utils/test_decorators.py index ae6ffa4b..f5408868 100644 --- a/xtesting/tests/unit/utils/test_decorators.py +++ b/xtesting/tests/unit/utils/test_decorators.py @@ -94,7 +94,8 @@ class DecoratorsTesting(unittest.TestCase): self.assertEqual(test.push_to_db(), testcase.TestCase.EX_OK) args[0].assert_called_once_with( 'http://127.0.0.1', data=self._get_json(), - headers={'Content-Type': 'application/json'}) + headers={'Content-Type': 'application/json'}, + timeout=10) def test_wrong_shema(self): os.environ['TEST_DB_URL'] = '/dev/null' |