Skip to content

Commit

Permalink
Resolve class name conflict
Browse files Browse the repository at this point in the history
Add missing call to run_forever()
  • Loading branch information
NeonDaniel committed Oct 2, 2023
1 parent e57fafd commit e9a6902
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions neon_minerva/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ def test_intents(skill_entrypoint, test_file, debug, padacioso):
@click.argument("test_file")
def test_text_inputs(lang, test_file):
from neon_utils.file_utils import load_commented_file
from neon_minerva.integration.text_test_runner import TextTestRunner
from neon_minerva.integration.text import TextIntentTests
prompts = load_commented_file(test_file).split('\n')
click.echo(f"Testing {len(prompts)} prompts")
runner = TextTestRunner(prompts, lang)
runner = TextIntentTests(prompts, lang)
results = runner.run_test()
click.echo(pformat(results))
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@
from ovos_bus_client.message import Message


class TextTestRunner:
class TextIntentTests:
def __init__(self, prompts: List[str], lang: str = "en-us", bus_config: dict = None):
bus_config = bus_config or dict()
self.core_bus = MessageBusClient(**bus_config)
self.core_bus.run_in_thread()
self.lang = lang
self._prompts = prompts
self._results = list()
Expand Down

0 comments on commit e9a6902

Please sign in to comment.