Skip to content

Commit f8844c4

Browse files
author
REDMOND\aygupta
committed
To automate python sdk test run
1 parent 8841bb1 commit f8844c4

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

tests/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
RECORD_MODE = os.environ.get('RECORD_MODE', 'all').lower()
1717
AZURE_ACL_TEST_APPID = os.environ.get('AZURE_ACL_TEST_APPID')
1818
CLIENT_ID = os.environ['azure_service_principal']
19+
ROOT_DIR = os.environ['ROOT_DIR']
1920

2021
if RECORD_MODE == 'none':
2122
STORE_NAME = fake_settings.STORE_NAME

tests/test_multithread.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def test_download_path(azure):
168168
down = ADLDownloader(
169169
azure,
170170
lpath="/lpath/test/testfolder",
171-
rpath='/' + test_dir.name,
171+
rpath='/'/test_dir,
172172
run=False)
173173
for lfile, rfile in down._file_pairs:
174174
if 'data' in lfile:

tests/testing.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
from azure.datalake.store.core import AzureDLPath
2121
from tests import fake_settings, settings
22+
from tests.settings import ROOT_DIR
2223

2324

2425
def _build_func_path_generator(function):
@@ -68,7 +69,7 @@ def _scrub_sensitive_response_info(response):
6869

6970
def working_dir():
7071
if not hasattr(working_dir, "path"):
71-
unique_dir = 'azure_python_sdk_test_dir'
72+
unique_dir = ROOT_DIR
7273
working_dir.path = AzureDLPath(unique_dir)
7374
return working_dir.path
7475

0 commit comments

Comments
 (0)