From anonymous, 1 Month ago, written in Plain Text.
Embed
  1. ─[florian@aragog]──[~/hsr/nuts]──[21-03-30]──[18:10]──[git/master•]────┄
  2. $ COLUMNS=80 tox -e mypy
  3. mypy inst-nodeps: /home/florian/hsr/nuts/.tox/.tmp/package/1/pytest_nuts-0.1.0.tar.gz
  4. mypy installed: bcrypt==3.2.0,certifi==2020.12.5,cffi==1.14.5,chardet==4.0.0,colorama==0.4.4,cryptography==3.4.6,dnspython==2.1.0,future==0.18.2,idna==2.10,Jinja2==2.11.3,lxml==4.6.3,MarkupSafe==1.1.1,mypy==0.812,mypy-extensions==0.4.3,ncclient==0.6.10,netaddr==0.8.0,netmiko==3.3.3,ntc-templates==2.0.0,paramiko==2.7.2,passlib==1.7.4,pycparser==2.20,pyeapi==0.8.4,PyNaCl==1.4.0,pyparsing==2.4.7,pyserial==3.5,pytest-nuts @ file:///home/florian/hsr/nuts/.tox/.tmp/package/1/pytest_nuts-0.1.0.tar.gz,PyYAML==5.4.1,requests==2.25.1,ruamel.yaml==0.16.13,ruamel.yaml.clib==0.2.2,scp==0.13.3,six==1.15.0,tenacity==7.0.0,textfsm==1.1.0,transitions==0.8.7,typed-ast==1.4.2,typing-extensions==3.7.4.3,urllib3==1.26.4,yamlordereddictloader==0.4.0
  5. mypy run-test-pre: PYTHONHASHSEED='769818610'
  6. mypy run-test: commands[0] | mypy pytest_nuts tests
  7. tests/helpers/: error: Cannot find implementation or library stub for module named 'nornir.core.task'  [import]
  8.     from nornir.core.task import MultiResult, Result
  9.     ^
  10. tests/helpers/: note: In function "create_result":
  11. tests/helpers/: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
  12.     def create_result(
  13.     ^
  14. tests/base_tests/simple_nuts_annotation.py:4: error: Cannot find implementation or library stub for module named 'pytest'  [import]
  15.     import pytest
  16.     ^
  17. tests/base_tests/module_level_fixtures.py:1: error: Cannot find implementation or library stub for module named 'pytest'  [import]
  18.     import pytest
  19.     ^
  20. pytest_nuts/helpers/: error: Cannot find implementation or library stub for module named 'nornir.core.task'  [import]
  21.     from nornir.core.task import Result, MultiResult, AggregatedResult
  22.     ^
  23. tests/test_index.py:1: error: Cannot find implementation or library stub for module named 'pytest'  [import]
  24.     import pytest
  25.     ^
  26. tests/helpers/test_result.py:3: error: Cannot find implementation or library stub for module named 'nornir.core.task'  [import]
  27.     from nornir.core.task import Result
  28.     ^
  29. tests/helpers/test_converters.py:1: error: Cannot find implementation or library stub for module named 'pytest'  [import]
  30.     import pytest
  31.     ^
  32. pytest_nuts/: error: Cannot find implementation or library stub for module named 'nornir.core'  [import]
  33.     from nornir.core import Nornir
  34.     ^
  35. pytest_nuts/: error: Cannot find implementation or library stub for module named 'nornir.core.task'  [import]
  36.     from nornir.core.task import AggregatedResult
  37.     ^
  38. tests/test_context.py:3: error: Cannot find implementation or library stub for module named 'pytest'  [import]
  39.     import pytest
  40.     ^
  41. tests/test_context.py:4: error: Cannot find implementation or library stub for module named 'nornir.core.plugins.connections'  [import]
  42.     from nornir.core.plugins.connections import ConnectionPluginRegister
  43.     ^
  44. tests/test_context.py:5: error: Cannot find implementation or library stub for module named 'nornir.core.plugins.inventory'  [import]
  45.     from nornir.core.plugins.inventory import InventoryPluginRegister
  46.     ^
  47. tests/test_context.py:6: error: Cannot find implementation or library stub for module named 'nornir.core.plugins.runners'  [import]
  48.     from nornir.core.plugins.runners import RunnersPluginRegister
  49.     ^
  50. tests/base_tests/: error: Cannot find implementation or library stub for module named 'pytest'  [import]
  51.     import pytest
  52.     ^
  53. tests/base_tests/: error: Cannot find implementation or library stub for module named '_pytest.fixtures'  [import]
  54.     from _pytest.fixtures import FixtureRequest
  55.     ^
  56. tests/base_tests/: error: Cannot find implementation or library stub for module named 'nornir.core.task'  [import]
  57.     from nornir.core.task import AggregatedResult
  58.     ^
  59. pytest_nuts/base_tests/netmiko_ospf_neighbors.py:4: error: Cannot find implementation or library stub for module named 'pytest'  [import]
  60.     import pytest
  61.     ^
  62. pytest_nuts/base_tests/netmiko_ospf_neighbors.py:5: error: Cannot find implementation or library stub for module named 'nornir.core.filter'  [import]
  63.     from nornir.core.filter import F
  64.     ^
  65. pytest_nuts/base_tests/netmiko_ospf_neighbors.py:6: error: Cannot find implementation or library stub for module named 'nornir.core.task'  [import]
  66.     from nornir.core.task import MultiResult, AggregatedResult
  67.     ^
  68. pytest_nuts/base_tests/netmiko_iperf.py:2: error: Cannot find implementation or library stub for module named 'pytest'  [import]
  69.     import pytest
  70.     ^
  71. pytest_nuts/base_tests/netmiko_iperf.py:6: error: Cannot find implementation or library stub for module named 'nornir.core.filter'  [import]
  72.     from nornir.core.filter import F
  73.     ^
  74. pytest_nuts/base_tests/netmiko_iperf.py:7: error: Cannot find implementation or library stub for module named 'nornir.core.task'  [import]
  75.     from nornir.core.task import Task, Result, MultiResult, AggregatedResult
  76.     ^
  77. pytest_nuts/base_tests/netmiko_iperf.py: note: In function "_destinations_per_host":
  78. pytest_nuts/base_tests/netmiko_iperf.py:62: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
  79.     def _destinations_per_host(test_data) -> Callable:
  80.     ^
  81. pytest_nuts/base_tests/netmiko_iperf.py: note: In function "netmiko_run_iperf":
  82. pytest_nuts/base_tests/netmiko_iperf.py:73: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
  83.     def netmiko_run_iperf(task: Task, destinations_per_host) -> Result:
  84.     ^
  85. pytest_nuts/base_tests/netmiko_iperf.py: note: In function "_extract_bps":
  86. pytest_nuts/base_tests/netmiko_iperf.py:89: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
  87.     def _extract_bps(iperf_task) -> int:
  88.     ^
  89. pytest_nuts/base_tests/netmiko_iperf.py: note: In function "_extract_dest":
  90. pytest_nuts/base_tests/netmiko_iperf.py:94: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
  91.     def _extract_dest(iperf_task) -> str:
  92.     ^
  93. pytest_nuts/base_tests/netmiko_cdp_neighbors.py:4: error: Cannot find implementation or library stub for module named 'pytest'  [import]
  94.     import pytest
  95.     ^
  96. pytest_nuts/base_tests/netmiko_cdp_neighbors.py:5: error: Cannot find implementation or library stub for module named 'nornir.core.filter'  [import]
  97.     from nornir.core.filter import F
  98.     ^
  99. pytest_nuts/base_tests/netmiko_cdp_neighbors.py:6: error: Cannot find implementation or library stub for module named 'nornir.core.task'  [import]
  100.     from nornir.core.task import MultiResult, AggregatedResult
  101.     ^
  102. pytest_nuts/base_tests/napalm_ping.py:5: error: Cannot find implementation or library stub for module named 'pytest'  [import]
  103.     import pytest
  104.     ^
  105. pytest_nuts/base_tests/napalm_ping.py:6: error: Cannot find implementation or library stub for module named 'nornir.core'  [import]
  106.     from nornir.core import Task
  107.     ^
  108. pytest_nuts/base_tests/napalm_ping.py:7: error: Cannot find implementation or library stub for module named 'nornir.core.filter'  [import]
  109.     from nornir.core.filter import F
  110.     ^
  111. pytest_nuts/base_tests/napalm_ping.py:8: error: Cannot find implementation or library stub for module named 'nornir.core.task'  [import]
  112.     from nornir.core.task import Result, MultiResult, AggregatedResult
  113.     ^
  114. pytest_nuts/base_tests/napalm_ping.py: note: In function "napalm_ping_multi_host":
  115. pytest_nuts/base_tests/napalm_ping.py:58: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
  116.     def napalm_ping_multi_host(task: Task, destinations_per_host, **kwargs) -> Result:
  117.     ^
  118. pytest_nuts/base_tests/napalm_network_instances.py:4: error: Cannot find implementation or library stub for module named 'pytest'  [import]
  119.     import pytest
  120.     ^
  121. pytest_nuts/base_tests/napalm_network_instances.py:5: error: Cannot find implementation or library stub for module named 'nornir.core.filter'  [import]
  122.     from nornir.core.filter import F
  123.     ^
  124. pytest_nuts/base_tests/napalm_network_instances.py:6: error: Cannot find implementation or library stub for module named 'nornir.core.task'  [import]
  125.     from nornir.core.task import MultiResult, AggregatedResult
  126.     ^
  127. pytest_nuts/base_tests/napalm_lldp_neighbors.py:4: error: Cannot find implementation or library stub for module named 'pytest'  [import]
  128.     import pytest
  129.     ^
  130. pytest_nuts/base_tests/napalm_lldp_neighbors.py:5: error: Cannot find implementation or library stub for module named 'nornir.core.filter'  [import]
  131.     from nornir.core.filter import F
  132.     ^
  133. pytest_nuts/base_tests/napalm_lldp_neighbors.py:6: error: Cannot find implementation or library stub for module named 'nornir.core.task'  [import]
  134.     from nornir.core.task import MultiResult, AggregatedResult
  135.     ^
  136. pytest_nuts/base_tests/napalm_interfaces.py:4: error: Cannot find implementation or library stub for module named 'pytest'  [import]
  137.     import pytest
  138.     ^
  139. pytest_nuts/base_tests/napalm_interfaces.py:5: error: Cannot find implementation or library stub for module named 'nornir.core.filter'  [import]
  140.     from nornir.core.filter import F
  141.     ^
  142. pytest_nuts/base_tests/napalm_interfaces.py:6: error: Cannot find implementation or library stub for module named 'nornir.core.task'  [import]
  143.     from nornir.core.task import MultiResult, AggregatedResult
  144.     ^
  145. pytest_nuts/base_tests/napalm_get_users.py:4: error: Cannot find implementation or library stub for module named 'pytest'  [import]
  146.     import pytest
  147.     ^
  148. pytest_nuts/base_tests/napalm_get_users.py:5: error: Cannot find implementation or library stub for module named 'nornir.core.filter'  [import]
  149.     from nornir.core.filter import F
  150.     ^
  151. pytest_nuts/base_tests/napalm_get_users.py:6: error: Cannot find implementation or library stub for module named 'nornir.core.task'  [import]
  152.     from nornir.core.task import MultiResult, AggregatedResult
  153.     ^
  154. pytest_nuts/base_tests/napalm_bgp_neighbors.py:4: error: Cannot find implementation or library stub for module named 'pytest'  [import]
  155.     import pytest
  156.     ^
  157. pytest_nuts/base_tests/napalm_bgp_neighbors.py:4: note: See
  158. pytest_nuts/base_tests/napalm_bgp_neighbors.py:5: error: Cannot find implementation or library stub for module named 'nornir.core.filter'  [import]
  159.     from nornir.core.filter import F
  160.     ^
  161. pytest_nuts/base_tests/napalm_bgp_neighbors.py:6: error: Cannot find implementation or library stub for module named 'nornir.core.task'  [import]
  162.     from nornir.core.task import MultiResult, AggregatedResult
  163.     ^
  164. pytest_nuts/base_tests/napalm_bgp_neighbors.py: note: In member "test_local_as" of class "TestNapalmBgpNeighbors":
  165. pytest_nuts/base_tests/napalm_bgp_neighbors.py:62: error: Function is missing a return type annotation  [no-untyped-def]
  166.         def test_local_as(self, peer_result: Dict, local_as: int):
  167.         ^
  168. pytest_nuts/base_tests/napalm_bgp_neighbors.py: note: In member "test_local_id" of class "TestNapalmBgpNeighbors":
  169. pytest_nuts/base_tests/napalm_bgp_neighbors.py:66: error: Function is missing a return type annotation  [no-untyped-def]
  170.         def test_local_id(self, peer_result: Dict, local_id: str):
  171.         ^
  172. pytest_nuts/base_tests/napalm_bgp_neighbors.py: note: In member "test_remote_as" of class "TestNapalmBgpNeighbors":
  173. pytest_nuts/base_tests/napalm_bgp_neighbors.py:70: error: Function is missing a return type annotation  [no-untyped-def]
  174.         def test_remote_as(self, peer_result: Dict, remote_as: int):
  175.         ^
  176. pytest_nuts/base_tests/napalm_bgp_neighbors.py: note: In member "test_remote_id" of class "TestNapalmBgpNeighbors":
  177. pytest_nuts/base_tests/napalm_bgp_neighbors.py:74: error: Function is missing a return type annotation  [no-untyped-def]
  178.         def test_remote_id(self, peer_result: Dict, remote_id: str):
  179.         ^
  180. pytest_nuts/base_tests/napalm_bgp_neighbors.py: note: In member "test_is_enabled" of class "TestNapalmBgpNeighbors":
  181. pytest_nuts/base_tests/napalm_bgp_neighbors.py:78: error: Function is missing a return type annotation  [no-untyped-def]
  182.         def test_is_enabled(self, peer_result: Dict, is_enabled: bool):
  183.         ^
  184. pytest_nuts/base_tests/napalm_bgp_neighbors.py: note: In member "test_is_up" of class "TestNapalmBgpNeighbors":
  185. pytest_nuts/base_tests/napalm_bgp_neighbors.py:82: error: Function is missing a return type annotation  [no-untyped-def]
  186.         def test_is_up(self, peer_result: Dict, is_up: bool):
  187.         ^
  188. tests/base_tests/test_netmiko_ospf_neighbors.py:1: error: Cannot find implementation or library stub for module named 'pytest'  [import]
  189.     import pytest
  190.     ^
  191. tests/base_tests/test_netmiko_ospf_neighbors.py:2: error: Cannot find implementation or library stub for module named 'nornir.core.task'  [import]
  192.     from nornir.core.task import AggregatedResult, MultiResult, Result
  193.     ^
  194. tests/base_tests/test_netmiko_iperf.py:1: error: Cannot find implementation or library stub for module named 'pytest'  [import]
  195.     import pytest
  196.     ^
  197. tests/base_tests/test_netmiko_iperf.py:3: error: Cannot find implementation or library stub for module named 'nornir.core.task'  [import]
  198.     from nornir.core.task import AggregatedResult, MultiResult, Result
  199.     ^
  200. tests/base_tests/test_netmiko_cdp_neighbors.py:1: error: Cannot find implementation or library stub for module named 'pytest'  [import]
  201.     import pytest
  202.     ^
  203. tests/base_tests/test_netmiko_cdp_neighbors.py:2: error: Cannot find implementation or library stub for module named 'nornir.core.task'  [import]
  204.     from nornir.core.task import AggregatedResult, MultiResult, Result
  205.     ^
  206. tests/base_tests/test_napalm_ping.py:1: error: Cannot find implementation or library stub for module named 'pytest'  [import]
  207.     import pytest
  208.     ^
  209. tests/base_tests/test_napalm_ping.py:3: error: Cannot find implementation or library stub for module named 'nornir.core.task'  [import]
  210.     from nornir.core.task import AggregatedResult, MultiResult, Result
  211.     ^
  212. tests/base_tests/test_napalm_network_instances.py:1: error: Cannot find implementation or library stub for module named 'pytest'  [import]
  213.     import pytest
  214.     ^
  215. tests/base_tests/test_napalm_network_instances.py:2: error: Cannot find implementation or library stub for module named 'nornir.core.task'  [import]
  216.     from nornir.core.task import AggregatedResult
  217.     ^
  218. tests/base_tests/test_napalm_lldp_neighbors.py:1: error: Cannot find implementation or library stub for module named 'pytest'  [import]
  219.     import pytest
  220.     ^
  221. tests/base_tests/test_napalm_lldp_neighbors.py:2: error: Cannot find implementation or library stub for module named 'nornir.core.task'  [import]
  222.     from nornir.core.task import AggregatedResult
  223.     ^
  224. tests/base_tests/test_napalm_interfaces.py:1: error: Cannot find implementation or library stub for module named 'pytest'  [import]
  225.     import pytest
  226.     ^
  227. tests/base_tests/test_napalm_interfaces.py:2: error: Cannot find implementation or library stub for module named 'nornir.core.task'  [import]
  228.     from nornir.core.task import AggregatedResult
  229.     ^
  230. tests/base_tests/test_napalm_get_users.py:1: error: Cannot find implementation or library stub for module named 'pytest'  [import]
  231.     import pytest
  232.     ^
  233. tests/base_tests/test_napalm_get_users.py:2: error: Cannot find implementation or library stub for module named 'nornir.core.task'  [import]
  234.     from nornir.core.task import AggregatedResult, MultiResult, Result
  235.     ^
  236. tests/base_tests/test_napalm_bgp_neighbors.py:1: error: Cannot find implementation or library stub for module named 'pytest'  [import]
  237.     import pytest
  238.     ^
  239. tests/base_tests/test_napalm_bgp_neighbors.py:2: error: Cannot find implementation or library stub for module named 'nornir.core.task'  [import]
  240.     from nornir.core.task import AggregatedResult
  241.     ^
  242. pytest_nuts/: error: Cannot find implementation or library stub for module named 'py'  [import]
  243.     import py
  244.     ^
  245. pytest_nuts/: error: Cannot find implementation or library stub for module named 'pytest'  [import]
  246.     import pytest
  247.     ^
  248. pytest_nuts/: error: Cannot find implementation or library stub for module named '_pytest'  [import]
  249.     from _pytest import nodes
  250.     ^
  251. pytest_nuts/: error: Cannot find implementation or library stub for module named '_pytest.mark'  [import]
  252.     from _pytest.mark import ParameterSet
  253.     ^
  254. pytest_nuts/: error: Cannot find implementation or library stub for module named '_pytest.nodes'  [import]
  255.     from _pytest.nodes import Node
  256.     ^
  257. pytest_nuts/: error: Cannot find implementation or library stub for module named '_pytest.python'  [import]
  258.     from _pytest.python import Metafunc
  259.     ^
  260. pytest_nuts/: note: In member "__init__" of class "NutsTestClass":
  261. pytest_nuts/: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
  262.         def __init__(self, parent: NutsTestFile, name: str, class_name: str, **kw):
  263.         ^
  264. pytest_nuts/: note: In member "from_parent" of class "NutsTestClass":
  265. pytest_nuts/: error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
  266.         def from_parent(cls, parent: Node, *, name: str, obj=None, **kw) -> Any:  # type: ignore[override]
  267.         ^
  268. pytest_nuts/: error: Cannot find implementation or library stub for module named 'pytest'  [import]
  269.     import pytest
  270.     ^
  271. pytest_nuts/: error: Cannot find implementation or library stub for module named '_pytest.main'  [import]
  272.     from _pytest.main import Session
  273.     ^
  274. pytest_nuts/: error: Cannot find implementation or library stub for module named '_pytest.nodes'  [import]
  275.     from _pytest.nodes import Collector
  276.     ^
  277. pytest_nuts/: error: Cannot find implementation or library stub for module named '_pytest.python'  [import]
  278.     from _pytest.python import Metafunc
  279.     ^
  280. pytest_nuts/: error: Cannot find implementation or library stub for module named '_pytest.fixtures'  [import]
  281.     from _pytest.fixtures import FixtureRequest
  282.     ^
  283. pytest_nuts/: error: Cannot find implementation or library stub for module named '_pytest.config'  [import]
  284.     from _pytest.config import Config
  285.     ^
  286. pytest_nuts/: error: Cannot find implementation or library stub for module named 'nornir'  [import]
  287.     from nornir import InitNornir
  288.     ^
  289. pytest_nuts/: error: Cannot find implementation or library stub for module named 'nornir.core'  [import]
  290.     from nornir.core import Nornir
  291.     ^
  292. pytest_nuts/: error: Cannot find implementation or library stub for module named 'py._path.local'  [import]
  293.     from py._path.local import LocalPath
  294.     ^
  295. Found 91 errors in 30 files (checked 44 source files)
  296. ERROR: InvocationError for command /home/florian/hsr/nuts/.tox/mypy/bin/mypy pytest_nuts tests (exited with code 1)
  297. ___________________________________ summary ____________________________________
  298. ERROR:   mypy: commands failed