remotion-lambda 4.0.502__tar.gz → 4.0.504__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {remotion_lambda-4.0.502 → remotion_lambda-4.0.504}/PKG-INFO +1 -1
- {remotion_lambda-4.0.502 → remotion_lambda-4.0.504}/remotion_lambda/models.py +6 -2
- {remotion_lambda-4.0.502 → remotion_lambda-4.0.504}/remotion_lambda/version.py +1 -1
- {remotion_lambda-4.0.502 → remotion_lambda-4.0.504}/remotion_lambda.egg-info/PKG-INFO +1 -1
- {remotion_lambda-4.0.502 → remotion_lambda-4.0.504}/tests/test_render_client_render_media.py +19 -0
- {remotion_lambda-4.0.502 → remotion_lambda-4.0.504}/LICENSE +0 -0
- {remotion_lambda-4.0.502 → remotion_lambda-4.0.504}/README.md +0 -0
- {remotion_lambda-4.0.502 → remotion_lambda-4.0.504}/remotion_lambda/__init__.py +0 -0
- {remotion_lambda-4.0.502 → remotion_lambda-4.0.504}/remotion_lambda/exception.py +0 -0
- {remotion_lambda-4.0.502 → remotion_lambda-4.0.504}/remotion_lambda/remotionclient.py +0 -0
- {remotion_lambda-4.0.502 → remotion_lambda-4.0.504}/remotion_lambda.egg-info/SOURCES.txt +0 -0
- {remotion_lambda-4.0.502 → remotion_lambda-4.0.504}/remotion_lambda.egg-info/dependency_links.txt +0 -0
- {remotion_lambda-4.0.502 → remotion_lambda-4.0.504}/remotion_lambda.egg-info/requires.txt +0 -0
- {remotion_lambda-4.0.502 → remotion_lambda-4.0.504}/remotion_lambda.egg-info/top_level.txt +0 -0
- {remotion_lambda-4.0.502 → remotion_lambda-4.0.504}/setup.cfg +0 -0
- {remotion_lambda-4.0.502 → remotion_lambda-4.0.504}/setup.py +0 -0
- {remotion_lambda-4.0.502 → remotion_lambda-4.0.504}/tests/__init__.py +0 -0
- {remotion_lambda-4.0.502 → remotion_lambda-4.0.504}/tests/conftest.py +0 -0
- {remotion_lambda-4.0.502 → remotion_lambda-4.0.504}/tests/constants.py +0 -0
- {remotion_lambda-4.0.502 → remotion_lambda-4.0.504}/tests/test_get_render_progress_client.py +0 -0
- {remotion_lambda-4.0.502 → remotion_lambda-4.0.504}/tests/test_large_payload_compression.py +0 -0
- {remotion_lambda-4.0.502 → remotion_lambda-4.0.504}/tests/test_remotion_client.py +0 -0
- {remotion_lambda-4.0.502 → remotion_lambda-4.0.504}/tests/test_render_client_render_still.py +0 -0
|
@@ -309,7 +309,7 @@ class RenderMediaParams:
|
|
|
309
309
|
default_factory=lambda: PlayInBrowser(type='play-in-browser')
|
|
310
310
|
)
|
|
311
311
|
muted: bool = False
|
|
312
|
-
overwrite: bool =
|
|
312
|
+
overwrite: Optional[bool] = None
|
|
313
313
|
force_path_style: Optional[bool] = None
|
|
314
314
|
audio_bitrate: Optional[int] = None
|
|
315
315
|
video_bitrate: Optional[int] = None
|
|
@@ -373,7 +373,11 @@ class RenderMediaParams:
|
|
|
373
373
|
'downloadBehavior': self.download_behavior,
|
|
374
374
|
'muted': self.muted,
|
|
375
375
|
'version': VERSION,
|
|
376
|
-
'overwrite':
|
|
376
|
+
'overwrite': (
|
|
377
|
+
self.overwrite
|
|
378
|
+
if self.overwrite is not None
|
|
379
|
+
else int(VERSION.split('.', maxsplit=1)[0]) >= 5
|
|
380
|
+
),
|
|
377
381
|
'audioBitrate': self.audio_bitrate,
|
|
378
382
|
'videoBitrate': self.video_bitrate,
|
|
379
383
|
'webhook': self.webhook,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
# pylint: disable=missing-module-docstring, missing-final-newline
|
|
2
|
-
VERSION = "4.0.
|
|
2
|
+
VERSION = "4.0.504"
|
{remotion_lambda-4.0.502 → remotion_lambda-4.0.504}/tests/test_render_client_render_media.py
RENAMED
|
@@ -1,10 +1,29 @@
|
|
|
1
1
|
from unittest import TestCase
|
|
2
|
+
from unittest.mock import patch
|
|
2
3
|
|
|
3
4
|
from remotion_lambda.models import RenderMediaParams, ShouldDownload, Webhook
|
|
4
5
|
from remotion_lambda.remotionclient import RemotionClient
|
|
5
6
|
from remotion_lambda.exception import RemotionInvalidArgumentException
|
|
6
7
|
|
|
8
|
+
|
|
7
9
|
class TestRemotionClient(TestCase):
|
|
10
|
+
def test_overwrite_defaults_to_false_in_v4(self):
|
|
11
|
+
render_params = RenderMediaParams()
|
|
12
|
+
|
|
13
|
+
self.assertFalse(render_params.serialize_params()['overwrite'])
|
|
14
|
+
|
|
15
|
+
@patch('remotion_lambda.models.VERSION', '5.0.0')
|
|
16
|
+
def test_overwrite_defaults_to_true_in_v5(self):
|
|
17
|
+
render_params = RenderMediaParams()
|
|
18
|
+
|
|
19
|
+
self.assertTrue(render_params.serialize_params()['overwrite'])
|
|
20
|
+
|
|
21
|
+
@patch('remotion_lambda.models.VERSION', '5.0.0')
|
|
22
|
+
def test_explicit_false_overwrite_is_preserved_in_v5(self):
|
|
23
|
+
render_params = RenderMediaParams(overwrite=False)
|
|
24
|
+
|
|
25
|
+
self.assertFalse(render_params.serialize_params()['overwrite'])
|
|
26
|
+
|
|
8
27
|
def test_remotion_construct_request(self):
|
|
9
28
|
client = RemotionClient(
|
|
10
29
|
region="us-east-1", serve_url="testbed", function_name="remotion-render"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{remotion_lambda-4.0.502 → remotion_lambda-4.0.504}/remotion_lambda.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{remotion_lambda-4.0.502 → remotion_lambda-4.0.504}/tests/test_get_render_progress_client.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{remotion_lambda-4.0.502 → remotion_lambda-4.0.504}/tests/test_render_client_render_still.py
RENAMED
|
File without changes
|