File tree Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change
1
+ ${SCW_SERVERLESS_FOLDER}
Original file line number Diff line number Diff line change 18
18
GATEWAY_S3_BUCKET_NAME = os .getenv ("GATEWAY_S3_BUCKET_NAME" )
19
19
20
20
TESTS_DIR = os .path .realpath (os .path .dirname (__file__ ))
21
+ PROJECT_DIR = Path (TESTS_DIR ).parent
21
22
22
23
APP_FIXTURES_PATH = Path (TESTS_DIR , "app_fixtures" )
23
24
Original file line number Diff line number Diff line change @@ -39,9 +39,14 @@ def run_deploy_command(
39
39
dst = cwd ,
40
40
dirs_exist_ok = True ,
41
41
)
42
+
42
43
return cli_runner .invoke (
43
44
deploy ,
44
45
args = (args or []) + [str (cwd / app_path .name )],
46
+ # When vendoring scw-serverless to install it on Scaleway Functions,
47
+ # we use the version being tested. This is achieved by passing the absolute path
48
+ # to the project in the requirements.txt file.
49
+ env = {"SCW_SERVERLESS_FOLDER" : str (constants .PROJECT_DIR )},
45
50
catch_exceptions = False ,
46
51
)
47
52
You can’t perform that action at this time.
0 commit comments