Closed himanshugt16 closed 7 hours ago
This pull request introduces a new command-line argument, event_type
, to the doc_import_parser
function within the add_subparser
method of the kairon/cli/content_importer.py
file. The event_type
argument, which accepts a string value, is designed to specify the event type as "content_importer". Additionally, a new test class is added in tests/unit_test/cli_test.py
to validate the CLI functionality, ensuring various scenarios are handled correctly.
Files | Change Summary |
---|---|
kairon/cli/content_importer.py | Added a new command-line argument event_type of type str to doc_import_parser in add_subparser function. Removed the event_type key from the payload dictionary in the enqueue method. |
tests/unit_test/cli_test.py | Introduced TestDocContentImporterCli class with multiple test methods to validate CLI behavior for document content importing. |
content_importer
, which is directly related to the enhancements made in the add_subparser
function in the main PR, as both involve modifications to the command-line interface for content importing functionality.In the land of code where rabbits play,
A new command blooms bright today.
Withevent_type
now in sight,
Importing content feels just right!
Hop along, let’s celebrate,
For every change, we elevate! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
event_type
for improved command functionality in the content importer. Users can now specify the event type when executing commands, enhancing operational granularity.Bug Fixes
event_type
from the payload in the content importer, streamlining the functionality.Tests