aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_service.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_service.py')
-rwxr-xr-xtests/test_service.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_service.py b/tests/test_service.py
index 7606ed2..3e3ec94 100755
--- a/tests/test_service.py
+++ b/tests/test_service.py
@@ -15,6 +15,7 @@
from os import path
from pathlib import Path
+from tempfile import TemporaryDirectory
from unittest import mock
from unittest.mock import MagicMock, PropertyMock
import shutil
@@ -531,7 +532,8 @@ def test_get_tosca_bad_csart(requests_mock):
requests_mock.get(
'https://sdc.api.be.simpledemo.onap.org:30204/sdc/v1/catalog/services/12/toscaModel',
content=file_content)
- svc.get_tosca('directory')
+ with TemporaryDirectory() as tempdir:
+ svc.get_tosca(tempdir)
assert not path.exists('/tmp/tosca_files')