Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions tests/end_to_end/end_to_end_base.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from pathlib import Path

import os

from typing import List
Expand Down Expand Up @@ -25,9 +27,11 @@ class EndToEndBase(InitIntegBase, StackOutputsIntegBase, DeleteIntegBase, SyncIn

def setUp(self):
super().setUp()
e2e_dir = Path(__file__).resolve().parent
self.stacks = []
self.config_file_dir = GlobalConfig().config_dir
self._create_config_dir()
self.e2e_test_data_path = Path(e2e_dir, "testdata")

def _create_config_dir(self):
# Init tests will lock the config dir, ensure it exists before obtaining a lock
Expand Down
2 changes: 1 addition & 1 deletion tests/end_to_end/test_runtimes_e2e.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def test_integration(self):
event = '{"hello": "world"}'
stack_name = self._method_to_stack_name(self.id())
with EndToEndTestContext(self.app_name) as e2e_context:
project_path = str(Path("testdata") / "esbuild-datadog-integration")
project_path = str(self.e2e_test_data_path / "esbuild-datadog-integration")
os.mkdir(e2e_context.project_directory)
copy_tree(project_path, e2e_context.project_directory)
self.template_path = e2e_context.template_path
Expand Down