Skip to content

Commit 7efb032

Browse files
committed
Fix failing unit test
1 parent 78d88af commit 7efb032

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/unit/sagemaker/local/test_local_utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@
2222
from sagemaker.session_settings import SessionSettings
2323

2424

25+
@patch("sagemaker.local.utils.os.path")
2526
@patch("sagemaker.local.utils.os")
26-
def test_copy_directory_structure(m_os):
27+
def test_copy_directory_structure(m_os, m_os_path):
28+
m_os_path.join.return_value = "/tmp/code/"
2729
sagemaker.local.utils.copy_directory_structure("/tmp/", "code/")
2830
m_os.makedirs.assert_called_with("/tmp/code/", exist_ok=True)
2931

0 commit comments

Comments
 (0)