Skip to content

Commit 881d99e

Browse files
fix: Remove dublicated test case (#31)
* fix: Remove duplicated test case --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 9fc4a0f commit 881d99e

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

docs/coverage.svg

Lines changed: 2 additions & 2 deletions
Loading

tests/unittests/test_datasource.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -533,16 +533,6 @@ def test_disable_datasource_cache_no_valid_result(self, call_the_api_mock):
533533
with self.assertRaises(Exception):
534534
datasource.disable_datasource_cache("test")
535535

536-
@patch("grafana_api.api.Api.call_the_api")
537-
def test_enable_datasource_cache_no_valid_result(self, call_the_api_mock):
538-
model: APIModel = APIModel(host=MagicMock(), token=MagicMock())
539-
datasource: DatasourceQueryResourceCaching = DatasourceQueryResourceCaching(grafana_api_model=model)
540-
541-
call_the_api_mock.return_value = dict()
542-
543-
with self.assertRaises(Exception):
544-
datasource.enable_datasource_cache("test")
545-
546536
@patch("grafana_api.api.Api.call_the_api")
547537
def test_clean_datasource_cache(self, call_the_api_mock):
548538
model: APIModel = APIModel(host=MagicMock(), token=MagicMock())

0 commit comments

Comments
 (0)