-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added dialog for known places with schema #185
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, please check comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check the comments, good test cases!
|
||
|
||
# Create a copy of areas.json for consistent testing | ||
shutil.copy("areas.json", "test_areas.json") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we can make a copy manually in the test folder, because I think this would always override test_areas.json
, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -0,0 +1,56 @@ | |||
import json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When running this file I got the error:
ImportError while importing test module '/home/oscar/Repositories/home2/hri/packages/nlp/test/test_room_identification.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/home/oscar/miniconda3/lib/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test_room_identification.py:11: in <module>
from nlp.assets.dialogs import get_room_identification_dialog
E ModuleNotFoundError: No module named 'nlp'
Please add the following to make the module visible:
import sys
sys.path.append("..")
Added test file, schema and dialog for room identification from known places list: living room, dinning room, kitchen, bedroom, entrance.