AppTester
Helper class to test that an app (Reflex or Streamlit) starts and runs correctly.
Usage with a task that generates the app: AppTester.test_app_from_task( test_case=self, generate_task_type=GenerateReflexShowcaseApp, app_output_name="reflex_app", input_resources={"resource": table}, )
Usage with an existing AppResource: AppTester.test_app(self, app_resource)
Test that an app resource starts and runs correctly.
TestCaseAppResourceRun a task to generate an AppResource, then test that the app starts and runs correctly. It tests that the resource generated by the generate_task_type can be started as an app, that the app process is running, and that the health check endpoint returns a successful response. It also tests that the app process can be stopped.
TestCasetypestrdict[str, gws_core.resource.resource.Resource] | Nonedict | NoneRun a task using TaskRunner to generate an AppResource, then test that the app starts and runs correctly. This is a lighter alternative to test_app_from_task that does not require creating a full scenario.
TestCasetypestrdict[str, gws_core.resource.resource.Resource] | Nonedict | None