From 0803b051f42fff3d9aa8e23b146b5b873d0c9ce9 Mon Sep 17 00:00:00 2001 From: nervousapps Date: Tue, 20 Feb 2024 23:25:49 +0100 Subject: [PATCH] Fix tests --- python/auto_chaos/__init__.py | 2 ++ python/auto_chaos/base_system.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/python/auto_chaos/__init__.py b/python/auto_chaos/__init__.py index 19e3488..879d444 100644 --- a/python/auto_chaos/__init__.py +++ b/python/auto_chaos/__init__.py @@ -1,6 +1,8 @@ """ \U0001F4BE Init + +Do chaos automatically using gnerative AI \U0001F4BE """ from .__main__ import main diff --git a/python/auto_chaos/base_system.py b/python/auto_chaos/base_system.py index 3540642..484709d 100644 --- a/python/auto_chaos/base_system.py +++ b/python/auto_chaos/base_system.py @@ -34,7 +34,7 @@ def do_action(self, data: str) -> tuple[list[str], list[str]]: # Parse the string and get the action if "," in data: datas = data.split(",") - if "\n" in data: + elif "\n" in data: datas = data.split("\n") else: datas = [data]