re-fix pylint

This commit is contained in:
Ian McEwen
2024-03-23 22:17:49 -07:00
parent a139d180b8
commit daa5587443
2 changed files with 2 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
"""Meshtastic unit tests for __main__.py"""
# pylint: disable=C0302
# pylint: disable=C0302,W0613
import logging
import os
@@ -13,13 +13,11 @@ import pytest
from meshtastic.__main__ import (
Globals,
export_config,
getPref,
initParser,
main,
onConnection,
onNode,
onReceive,
setPref,
tunnelMain,
)

View File

@@ -36,7 +36,7 @@ def test_Tunnel_without_interface(mock_platform_system):
mock_platform_system.side_effect = a_mock
with pytest.raises(Tunnel.TunnelError) as pytest_wrapped_e:
Tunnel(None)
assert pytest_wrapped_e.type == Tunnel.TunnelError
assert pytest_wrapped_e.type == Tunnel.TunnelError
@pytest.mark.unitslow