Grommash9 / tg_chat_mate

https://grommash9.github.io/tg_chat_mate/
MIT License
5 stars 6 forks source link

Unit tests for check_action_value function #158

Open Grommash9 opened 10 months ago

Grommash9 commented 10 months ago

Add unit tests for check_action_value function to check what would be if we will pass wrong param type, or wrong param, we should be sure it's working as expected

please create new file in tests/ for it, ensure it starts from test_ so pytest will find it and fetch automatically

image

borys-33 commented 10 months ago

ImportError while importing test module 'C:\Users\boris\PycharmProjects\tg_chat_mate\bot\tests\test_unit.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: ......\AppData\Local\Programs\Python\Python310\lib\importlib__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests\test_unit.py:4: in from support_bot.routes.utils import check_action_value E ModuleNotFoundError: No module named 'support_bot'

pipenv run pytest tests/test_unit.py -v -s

borys-33 commented 10 months ago

we can`t remove Magic because all imports will be broke