forked from RasaHQ/rasa
-
Notifications
You must be signed in to change notification settings - Fork 0
tests_extractor.py
Iuri Severo edited this page Apr 20, 2021
·
2 revisions
Para garantir o sucesso da refatoração será feito análise do resultado dos testes unitários antes e depois das alterações.
Comando: pytest tests/nlu/extractors/test_extractor.py
Resultado:
================================================= test session starts ==================================================
platform linux -- Python 3.7.6, pytest-6.2.3, py-1.10.0, pluggy-0.13.1
rootdir: /mnt/c/Users/NB/Desktop/faculdade/semestre_7/GCES/rasa, configfile: pytest.ini
plugins: asyncio-0.14.0, cov-2.11.1, forked-1.3.0, sanic-1.6.2, timeout-1.4.2, xdist-1.34.0, typeguard-2.12.0
timeout: 60.0s
timeout method: signal
timeout func_only: True
collected 22 items
tests/nlu/extractors/test_extractor.py ...................... [100%]
=================================================== warnings summary ===================================================
.venv/lib/python3.7/site-packages/tensorflow/python/autograph/utils/testing.py:21
/mnt/c/Users/NB/Desktop/faculdade/semestre_7/GCES/rasa/.venv/lib/python3.7/site-packages/tensorflow/python/autograph/utils/testing.py:21: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
tests/nlu/extractors/test_extractor.py::test_check_check_correct_entity_annotations[## intent:test\n- I want to fly from [Berlin](location) to [ San Fransisco](location)\n-1]
tests/nlu/extractors/test_extractor.py::test_check_check_correct_entity_annotations[## intent:test\n- I want to fly from [Berlin ](location) to [San Fransisco](location)\n-1]
tests/nlu/extractors/test_extractor.py::test_check_check_correct_entity_annotations[## intent:test\n- I want to fly from [Berlin](location) to [San Fransisco.](location)\n- I have nothing to say.-1]
tests/nlu/extractors/test_extractor.py::test_check_check_correct_entity_annotations[## intent:test\n- I have nothing to say.\n- I want to fly from [Berlin](location) to[San Fransisco](location)\n-1]
tests/nlu/extractors/test_extractor.py::test_check_check_correct_entity_annotations[## intent:test\n- I want to fly from [Berlin](location) to[San Fransisco](location)\n- Book a flight from [London](location) to [Paris.](location)\n-2]
/mnt/c/Users/NB/Desktop/faculdade/semestre_7/GCES/rasa/rasa/shared/nlu/training_data/formats/markdown.py:56: FutureWarning: NLU data in Markdown format is deprecated and will be removed in Rasa Open Source 3.0.0. Please convert your Markdown NLU data to the new YAML training data format.
docs=DOCS_URL_MIGRATION_GUIDE_MD_DEPRECATION,
-- Docs: https://docs.pytest.org/en/stable/warnings.html
============================================ 22 passed, 6 warnings in 1.53s ============================================
Comando: pytest tests/nlu/extractors/test_extractor.py
Resultado:
================================================= test session starts ==================================================
platform linux -- Python 3.7.6, pytest-6.2.3, py-1.10.0, pluggy-0.13.1
rootdir: /mnt/c/Users/NB/Desktop/Faculdade/semestre_7/GCES/rasa, configfile: pytest.ini
plugins: asyncio-0.14.0, cov-2.11.1, forked-1.3.0, sanic-1.6.2, timeout-1.4.2, xdist-1.34.0, typeguard-2.12.0
timeout: 60.0s
timeout method: signal
timeout func_only: True
collected 22 items
tests/nlu/extractors/test_extractor.py ...................... [100%]
=================================================== warnings summary ===================================================
../../../../faculdade/semestre_7/GCES/rasa/.venv/lib/python3.7/site-packages/tensorflow/python/autograph/utils/testing.py:21
/mnt/c/Users/NB/Desktop/faculdade/semestre_7/GCES/rasa/.venv/lib/python3.7/site-packages/tensorflow/python/autograph/utils/testing.py:21: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
tests/nlu/extractors/test_extractor.py::test_check_check_correct_entity_annotations[## intent:test\n- I want to fly from [Berlin](location) to [ San Fransisco](location)\n-1]
tests/nlu/extractors/test_extractor.py::test_check_check_correct_entity_annotations[## intent:test\n- I want to fly from [Berlin ](location) to [San Fransisco](location)\n-1]
tests/nlu/extractors/test_extractor.py::test_check_check_correct_entity_annotations[## intent:test\n- I want to fly from [Berlin](location) to [San Fransisco.](location)\n- I have nothing to say.-1]
tests/nlu/extractors/test_extractor.py::test_check_check_correct_entity_annotations[## intent:test\n- I have nothing to say.\n- I want to fly from [Berlin](location) to[San Fransisco](location)\n-1]
tests/nlu/extractors/test_extractor.py::test_check_check_correct_entity_annotations[## intent:test\n- I want to fly from [Berlin](location) to[San Fransisco](location)\n- Book a flight from [London](location) to [Paris.](location)\n-2]
/mnt/c/Users/NB/Desktop/Faculdade/semestre_7/GCES/rasa/rasa/shared/nlu/training_data/formats/markdown.py:56: FutureWarning: NLU data in Markdown format is deprecated and will be removed in Rasa Open Source 3.0.0. Please convert your Markdown NLU data to the new YAML training data format.
docs=DOCS_URL_MIGRATION_GUIDE_MD_DEPRECATION,
-- Docs: https://docs.pytest.org/en/stable/warnings.html
============================================ 22 passed, 6 warnings in 0.58s ============================================