Skip to content

🎥 Make videos programmatically with React

Add test val constants

Vlad M1c839305aa1a
diff --git a/packages/lambda-python/tests/conftest.py b/packages/lambda-python/tests/conftest.py
index 9fefd955ea..4d7bd344a8 100644
--- a/packages/lambda-python/tests/conftest.py
+++ b/packages/lambda-python/tests/conftest.py
@@ -1,9 +1,10 @@
import pytest
from remotion_lambda.remotionclient import RemotionClient
+from tests.constants import TEST_FUNCTION_NAME, TEST_REGION, TEST_SERVE_URL
@pytest.fixture
def remotion_client():
return RemotionClient(
- region="us-east-1", serve_url="testbed", function_name="remotion-render"
+ region=TEST_REGION, serve_url=TEST_SERVE_URL, function_name=TEST_FUNCTION_NAME
)
diff --git a/packages/lambda-python/tests/constants.py b/packages/lambda-python/tests/constants.py
new file mode 100644
index 0000000000..2cae16847d
--- /dev/null
+++ b/packages/lambda-python/tests/constants.py
@@ -0,0 +1,3 @@
+TEST_REGION = "us-east-1"
+TEST_SERVE_URL = "https://example.com"
+TEST_FUNCTION_NAME = "remotion-render"
diff --git a/packages/lambda-python/tests/test_remotion_client.py b/packages/lambda-python/tests/test_remotion_client.py
index 4fea5acf64..3f54d157ea 100644
--- a/packages/lambda-python/tests/test_remotion_client.py
+++ b/packages/lambda-python/tests/test_remotion_client.py
@@ -1,6 +1,7 @@
from tests.conftest import remotion_client
from remotion_lambda.remotionclient import RemotionClient
import pytest
+from tests.constants import TEST_FUNCTION_NAME, TEST_REGION, TEST_SERVE_URL
def test_bucket_name_format(remotion_client: RemotionClient):
@@ -8,6 +9,12 @@ def test_bucket_name_format(remotion_client: RemotionClient):
assert bucket_name.startswith("remotionlambda-useast1-")
+def test_client_config(remotion_client: RemotionClient):
+ assert remotion_client.function_name == TEST_FUNCTION_NAME
+ assert remotion_client.region == TEST_REGION
+ assert remotion_client.serve_url == TEST_SERVE_URL
+
+
@pytest.mark.parametrize(
"hash_value,expected",
[