diff --git a/core/operation/import_from_json_operation.py b/core/operation/import_from_json_operation.py index 03063e2..62811e2 100644 --- a/core/operation/import_from_json_operation.py +++ b/core/operation/import_from_json_operation.py @@ -29,14 +29,14 @@ def __init__( self._template_name = template_name self._target_namespace = target_namespace self._data_source_arn = data_source_arn - self._intput_dir = input_dir + self._input_dir = input_dir super().__init__(*args, **kwargs) def execute(self) -> dict: # Read template file into dictionary template_data = None template_file = self._resolve_path( - self._intput_dir, TEMPLATE_DIR, self._template_name + ".json" + self._input_dir, TEMPLATE_DIR, self._template_name + ".json" ) with open(template_file) as template_file: template_data = json.loads(template_file.read()) @@ -56,7 +56,7 @@ def execute(self) -> dict: dataset = None placeholder = di["Placeholder"] dataset_filename = self._resolve_path( - self._intput_dir, DATA_SET_DIR, placeholder + ".json" + self._input_dir, DATA_SET_DIR, placeholder + ".json" ) with open(dataset_filename) as dataset_file: dataset = json.loads(dataset_file.read()) diff --git a/tests/core/operation/test_export_analysis_operation.py b/tests/core/operation/test_export_analysis_operation.py index 9c1b0e5..ae77d05 100644 --- a/tests/core/operation/test_export_analysis_operation.py +++ b/tests/core/operation/test_export_analysis_operation.py @@ -1,4 +1,5 @@ import os +import tempfile import botocore from botocore.config import Config @@ -18,7 +19,7 @@ class TestExportAnalysisOperation: def test(self): analysis_id = "my-quicksight-analysis-id" - output_dir = "/tmp/test-output" + output_dir = tempfile.NamedTemporaryFile().name account = "012345678910" boto_config = Config(