Skip to content

Commit bd60d37

Browse files
author
Cyril Humbert
committed
Add test for Python 3.14 runtime
1 parent 18eebb9 commit bd60d37

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/unit/lib/plugins/aws/invoke-local/index.test.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,17 @@ describe('AwsInvokeLocal', () => {
495495
).to.be.equal(true);
496496
});
497497

498+
it('should call invokeLocalPython when python3.14 runtime is set', async () => {
499+
awsInvokeLocal.options.functionObj.runtime = 'python3.14';
500+
await awsInvokeLocal.invokeLocal();
501+
// NOTE: this is important so that tests on Windows won't fail
502+
const runtime = process.platform === 'win32' ? 'python.exe' : 'python3.14';
503+
expect(invokeLocalPythonStub.calledOnce).to.be.equal(true);
504+
expect(
505+
invokeLocalPythonStub.calledWithExactly(runtime, 'handler', 'hello', {}, undefined)
506+
).to.be.equal(true);
507+
});
508+
498509
it('should call invokeLocalJava when java8 runtime is set', async () => {
499510
awsInvokeLocal.options.functionObj.runtime = 'java8';
500511
await awsInvokeLocal.invokeLocal();

0 commit comments

Comments
 (0)