Skip to content

🎥 Make videos programmatically with React

python -m pytest

Jonny Burger45d2278f3f32
diff --git a/packages/it-tests/src/monorepo/python-package.test.ts b/packages/it-tests/src/monorepo/python-package.test.ts
index c4d35ac20d..e35d8fabdf 100644
--- a/packages/it-tests/src/monorepo/python-package.test.ts
+++ b/packages/it-tests/src/monorepo/python-package.test.ts
@@ -31,9 +31,12 @@ test("Set the right version for pytest", () => {
test("Python package should create the same renderMedia payload as normal Lambda package", async () => {
const cwd = path.join(process.cwd(), "..", "lambda-python");
- const pythonOutput = execSync("pytest -rP tests/test_render_client.py", {
- cwd,
- });
+ const pythonOutput = execSync(
+ "python -m pytest -rP tests/test_render_client.py",
+ {
+ cwd,
+ }
+ );
const output = pythonOutput.toString().split("\n");
const toParse = output[10];
const nativeVersion = await LambdaInternals.makeLambdaRenderMediaPayload({
@@ -60,7 +63,7 @@ test("Python package should create the same renderMedia payload as normal Lambda
test("Python package should create the same progress payload as normal Lambda package", async () => {
const cwd = path.join(process.cwd(), "..", "lambda-python");
const pythonOutput = execSync(
- "pytest -rP tests/test_get_render_progress_client.py",
+ "python -m pytest -rP tests/test_get_render_progress_client.py",
{
cwd,
}