Skip to content

armgit / burr

Public Imported from GitHub
0

Build applications that make decisions (chatbots, agents, simulations, etc...). Monitor, trace, persist, and execute on your own infrastructure.

Adds documentation for custom serde with testcase generation + updates for PR

elijahbenizzye22e10dc1306
diff --git a/burr/cli/__main__.py b/burr/cli/__main__.py
index 010bcc59..3aecae3d 100644
--- a/burr/cli/__main__.py
+++ b/burr/cli/__main__.py
@@ -289,10 +289,10 @@ def create_test_case(
"""
if serde_module:
if os.path.exists(serde_module):
- print(f"Importing from file {serde_module}")
+ logger.info(f"Importing from file {serde_module}")
import_from_file(serde_module)
else:
- print(f"Importing module {serde_module}")
+ logger.info(f"Importing module {serde_module}")
import importlib
importlib.import_module(serde_module)
diff --git a/docs/examples/creating_tests.rst b/docs/examples/creating_tests.rst
index a818304c..31fb86ff 100644
--- a/docs/examples/creating_tests.rst
+++ b/docs/examples/creating_tests.rst
@@ -51,6 +51,8 @@ Steps:
See `github repository example <https://github.com/DAGWorks-Inc/burr/tree/main/examples/test-case-creation>`_
for an example.
+Note that, if you have custom serialization/deserialization logic, you will want to pass in `--serde-module` to the
+test case with the module name of your serialization logic.
Future Work
-----------