Build applications that make decisions (chatbots, agents, simulations, etc...). Monitor, trace, persist, and execute on your own infrastructure.
Python aiburrchatbot-frameworkdagsgenerative-aigraphshacktoberfestllmopsllmsmlopspersistent-data-structurestate-machinestate-managementvisibility
Fixes up notebook
Stefan Krawczyk18a9a6c7c2d0
diff --git a/examples/test-case-creation/notebook.ipynb b/examples/test-case-creation/notebook.ipynbindex fd634f45..74876cde 100644--- a/examples/test-case-creation/notebook.ipynb+++ b/examples/test-case-creation/notebook.ipynb@@ -2,6 +2,18 @@"cells": [{"cell_type": "code",+ "execution_count": 1,+ "id": "5cc77bd80999b2a2",+ "metadata": {+ "ExecuteTime": {+ "end_time": "2024-04-01T05:29:38.960440Z",+ "start_time": "2024-04-01T05:29:37.926490Z"+ },+ "collapsed": false,+ "jupyter": {+ "outputs_hidden": false+ }+ },"outputs": [{"name": "stdout",@@ -11,10 +23,13 @@"\n"," Create a test case from a persisted state.\n","\n",- " Prints a pytest test case to the console assuming you have a\n",- " `pytest_generate_tests` function set up.\n",+ " Does two things:\n",+ "\n",+ " 1. Pulls data specified and saves it/prints to console. 2. Prints a pytest\n",+ " test case to the console for you to cut and paste.\n","\n",- " See examples/test-case-creation/test_application.py for details.\n",+ " See examples/test-case-creation/notebook.ipynb for example usage. See\n",+ " examples/test-case-creation/test_application.py for details.\n","\n","Options:\n"," --project-name TEXT Name of the project [required]\n",@@ -30,31 +45,37 @@"source": ["%%sh \n","burr-test-case create --help"- ],+ ]+ },+ {+ "cell_type": "markdown",+ "id": "944a988132d19779","metadata": {"collapsed": false,- "ExecuteTime": {- "end_time": "2024-04-01T05:29:38.960440Z",- "start_time": "2024-04-01T05:29:37.926490Z"+ "jupyter": {+ "outputs_hidden": false}},- "id": "5cc77bd80999b2a2",- "execution_count": 7- },- {- "cell_type": "markdown","source": ["# Create a test case\n","\n","Find the data you want to create a test case with in the UI."- ],- "metadata": {- "collapsed": false- },- "id": "944a988132d19779"+ ]},{"cell_type": "code",+ "execution_count": 4,+ "id": "586bcb0bdb5dde8b",+ "metadata": {+ "ExecuteTime": {+ "end_time": "2024-04-01T06:16:19.392833Z",+ "start_time": "2024-04-01T06:16:18.000721Z"+ },+ "collapsed": false,+ "jupyter": {+ "outputs_hidden": false+ }+ },"outputs": [{"name": "stdout",@@ -76,26 +97,30 @@" input_state = state.State(input_state)\n"," expected_state = state.State(expected_state)\n"," _, output_state = plan_cot(input_state) # exercise the action\n",- " assert output_state == expected_state\n"+ " assert output_state == expected_state\n",+ "\n"]}],"source": ["%%sh\n",- "burr-test-case create --project-name \"SOME_PROJECT\" --partition-key \"SOME_KEY\" --app-id \"SOME_ID\" --sequence-id 0 --target-file-name /tmp/test-case.json"- ],+ "burr-test-case create \\\n",+ " --project-name \"SOME_PROJECT\" \n",+ " --partition-key \"SOME_KEY\" \\\n",+ " --app-id \"SOME_ID\" \\\n",+ " --sequence-id 0 \\\n",+ " --target-file-name /tmp/test-case.json"+ ]+ },+ {+ "cell_type": "markdown",+ "id": "3ac9d600d0807fc8","metadata": {"collapsed": false,- "ExecuteTime": {- "end_time": "2024-04-01T06:16:19.392833Z",- "start_time": "2024-04-01T06:16:18.000721Z"+ "jupyter": {+ "outputs_hidden": false}},- "id": "586bcb0bdb5dde8b",- "execution_count": 12- },- {- "cell_type": "markdown","source": ["# What's next?\n"," \n",@@ -104,39 +129,39 @@"## Fill in the expected state part of the JSON\n","The expected state part of the JSON is empty. You need to fill it in with the expected state of the application after the test case has been run. Once you've\n","done that, you've got your test case!\n"- ],- "metadata": {- "collapsed": false- },- "id": "3ac9d600d0807fc8"+ ]},{"cell_type": "code",- "outputs": [],- "source": [],+ "execution_count": null,+ "id": "a727cdc01303cd39","metadata": {- "collapsed": false+ "collapsed": false,+ "jupyter": {+ "outputs_hidden": false+ }},- "id": "a727cdc01303cd39"+ "outputs": [],+ "source": []}],"metadata": {"kernelspec": {- "display_name": "Python 3",+ "display_name": "Python 3 (ipykernel)","language": "python","name": "python3"},"language_info": {"codemirror_mode": {"name": "ipython",- "version": 2+ "version": 3},"file_extension": ".py","mimetype": "text/x-python","name": "python","nbconvert_exporter": "python",- "pygments_lexer": "ipython2",- "version": "2.7.6"+ "pygments_lexer": "ipython3",+ "version": "3.10.4"}},"nbformat": 4,