Skip to content

Commit

Permalink
minor: 修复单元测试问题 TencentBlueKing#275
Browse files Browse the repository at this point in the history
  • Loading branch information
pagezz-canway committed May 14, 2019
1 parent 7529e6d commit 412edbc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gcloud/tests/external_plugins/models/test_cache.py
Expand Up @@ -21,6 +21,8 @@
FileSystemSource
)

from gcloud.tests.external_plugins.mock import * # noqa
from gcloud.tests.external_plugins.mock_settings import * # noqa
from gcloud.external_plugins import exceptions
from gcloud.external_plugins.models.cache import CachePackageSource

Expand Down Expand Up @@ -106,6 +108,7 @@ def test_packages(self):
def test_details(self):
self.assertEquals(self.cache_source.details, self.SOURCE_KWARGS)

@patch(OS_PATH_EXISTS, MagicMock(return_value=True))
def test_write__exception(self):
self.assertRaises(ValueError, self.cache_source.write)

Expand Down

0 comments on commit 412edbc

Please sign in to comment.