From f476143c52dc5ed356c08479b00ae5755c91ab7d Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Thu, 12 Jul 2018 09:12:25 +0300 Subject: [PATCH] test: check if we need to test RemoteAzure with _should_test_azure Signed-off-by: Ruslan Kuprieiev --- tests/test_data_cloud.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/tests/test_data_cloud.py b/tests/test_data_cloud.py index 4c2be3144..e7e46e1f3 100644 --- a/tests/test_data_cloud.py +++ b/tests/test_data_cloud.py @@ -154,12 +154,15 @@ class TestDataCloud(TestDvc): def test(self): config = TEST_CONFIG - for scheme, cl in [('s3://', RemoteS3), - ('gs://', RemoteGS), - ('azure://ContainerName=', RemoteAzure), - ('ssh://user@localhost:/', RemoteSSH), - (tempfile.mkdtemp(), RemoteLOCAL)]: + clist = [('s3://', RemoteS3), + ('gs://', RemoteGS), + ('ssh://user@localhost:/', RemoteSSH), + (tempfile.mkdtemp(), RemoteLOCAL)] + if _should_test_azure(): + clist.append(('azure://ContainerName=', RemoteAzure)) + + for scheme, cl in clist: remote_url = scheme + str(uuid.uuid4()) config[TEST_SECTION][Config.SECTION_REMOTE_URL] = remote_url self._test_cloud(config, cl)