[{"data":1,"prerenderedAt":67},["ShallowReactive",2],{"content-testing-python-starter-1-introduction":3},{"markdown":4,"frontMatterAttributes":5,"bodyRaw":12,"contributorPaths":13,"menuType":16,"contentName":17,"slug":18,"readingTime":19,"menu":20,"nextDocItem":28,"previousDocItem":66},"\u003Cp>This project contains automated test code samples for serverless applications written in Python. The project demonstrates several techniques for executing tests including mocking, emulation and testing in the cloud. Based on current tooling, we recommend customers focus on testing in the cloud as much as possible.\u003C\u002Fp>\n\u003Ch2>Testing in the Cloud\u003C\u002Fh2>\n\u003Cp>While testing in the cloud may create additional developer latency, have a cost impact, and require some customers to invest in additional dev-ops controls, this technique provides the most reliable, accurate, and complete test coverage. Performing tests in the cloud allows you to test IAM policies, service configurations, quotas, and the most up-to-date API signatures and return values. Tests run in the cloud are most likely to produce consistent results as you promote your code from environment to environment.\u003C\u002Fp>\n\u003Ch2>How do I use this guide?\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>If you want to follow along with the testing approaches in this guide, clone the project from the \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-test-samples\u002Ftree\u002Fmain\u002Fpython-test-samples\u002Fapigw-lambda\">GitHub repository\u003C\u002Fa> and go through the instructions on this guide.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>\u003Ccode>git clone https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-test-samples\u003C\u002Fcode>\n\u003Ccode>cd serverless-test-samples\u002Fpython-test-samples\u002Fapigw-lambda\u003C\u002Fcode>\u003C\u002Fp>\n\u003Cul>\n\u003Cli>If you want to learn how to test your own Python application, you can read the guide and adopt the approaches into your development workflow.\u003C\u002Fli>\n\u003C\u002Ful>\n",{"title":6,"order":7,"callout":8},"Introduction",1,{"title":9,"description":10,"link":11},"Check out other starter guides","Do you prefer to learn in another language? We also have starter guides in Java, TypeScript, and .NET.","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-test-samples\u002F","This project contains automated test code samples for serverless applications written in Python. The project demonstrates several techniques for executing tests including mocking, emulation and testing in the cloud. Based on current tooling, we recommend customers focus on testing in the cloud as much as possible.\n\n## Testing in the Cloud\nWhile testing in the cloud may create additional developer latency, have a cost impact, and require some customers to invest in additional dev-ops controls, this technique provides the most reliable, accurate, and complete test coverage. Performing tests in the cloud allows you to test IAM policies, service configurations, quotas, and the most up-to-date API signatures and return values. Tests run in the cloud are most likely to produce consistent results as you promote your code from environment to environment.\n\n## How do I use this guide?\n* If you want to follow along with the testing approaches in this guide, clone the project from the [GitHub repository](https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-test-samples\u002Ftree\u002Fmain\u002Fpython-test-samples\u002Fapigw-lambda) and go through the instructions on this guide.\n\n`git clone https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-test-samples`\n`cd serverless-test-samples\u002Fpython-test-samples\u002Fapigw-lambda`\n\n* If you want to learn how to test your own Python application, you can read the guide and adopt the approaches into your development workflow. ",[14,15],"content\u002Fcontributors\u002Fdan-fox.json","content\u002Fcontributors\u002Frohan-mehta.json","LIST","Python Test Samples Starter Project","\u002Fcontent\u002Ftesting\u002Fpython-starter\u002F1-introduction","1 min",[21],{"title":22,"content":23},"Testing Guide",[24,28,36,44,52,59],{"title":6,"order":7,"callout":25,"time":19,"path":26,"id":27,"link":18},{"title":9,"description":10,"link":11},"1-introduction","1-introduction.md",{"title":29,"order":30,"callout":31,"time":32,"path":33,"id":34,"link":35},"Project Setup",2,{"title":9,"description":10,"link":11},"3 min","2-project-setup","2-project-setup.md","\u002Fcontent\u002Ftesting\u002Fpython-starter\u002F2-project-setup",{"title":37,"order":38,"callout":39,"time":40,"path":41,"id":42,"link":43},"Local Testing",3,{"title":9,"description":10,"link":11},"4 min","3-local-testing","3-local-testing.md","\u002Fcontent\u002Ftesting\u002Fpython-starter\u002F3-local-testing",{"title":45,"order":46,"callout":47,"time":48,"path":49,"id":50,"link":51},"Testing in the Cloud",4,{"title":9,"description":10,"link":11},"2 min","4-testing-in-the-cloud","4-testing-in-the-cloud.md","\u002Fcontent\u002Ftesting\u002Fpython-starter\u002F4-testing-in-the-cloud",{"title":53,"order":54,"callout":55,"time":48,"path":56,"id":57,"link":58},"Observability in Testing",5,{"title":9,"description":10,"link":11},"5-observability-in-testing","5-observability-in-testing.md","\u002Fcontent\u002Ftesting\u002Fpython-starter\u002F5-observability-in-testing",{"title":60,"order":61,"callout":62,"time":19,"path":63,"id":64,"link":65},"Cleanup",6,{"title":9,"description":10,"link":11},"6-cleanup","6-cleanup.md","\u002Fcontent\u002Ftesting\u002Fpython-starter\u002F6-cleanup",null,1792578875004]