File tree Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 1919 fail-fast : false
2020 matrix :
2121 python-version :
22- - " 3.8"
2322 - " 3.9"
2423 - " 3.10"
24+ - " 3.11"
25+ - " 3.12"
26+ - " 3.13"
2527
2628 steps :
2729 - uses : actions/checkout@v4
Original file line number Diff line number Diff line change 11import json
2- import telnetlib
32
43import networkx
54import requests
5+ from Exscript .protocols import telnetlib
66
77from ..exceptions import ConversionException , TopologyRetrievalError
88from ..utils import _netjson_networkgraph , diff
Original file line number Diff line number Diff line change @@ -2,3 +2,4 @@ requests<3.0
22libcnml < 0.10.0
33openvpn-status >= 0.2 ,< 0.3
44networkx >= 2.6 ,< 3.5
5+ Exscript >= 2.6.28
Original file line number Diff line number Diff line change 11import os
2- import telnetlib
32import unittest
43
54import responses
@@ -64,13 +63,13 @@ def request_callback(request):
6463 with self .assertRaises (TopologyRetrievalError ):
6564 BaseParser (url = 'http://connectionerror.com' )
6665
67- @mock .patch ('telnetlib.Telnet' )
66+ @mock .patch ('Exscript.protocols. telnetlib.Telnet' )
6867 def test_telnet_retrieval_error (self , MockClass ):
69- telnetlib . Telnet .side_effect = ValueError ('testing exception' )
68+ MockClass .side_effect = ValueError ('testing exception' )
7069 with self .assertRaises (TopologyRetrievalError ):
7170 BaseParser (url = 'telnet://wrong.com' )
7271
73- @mock .patch ('telnetlib.Telnet' )
72+ @mock .patch ('Exscript.protocols. telnetlib.Telnet' )
7473 def test_telnet_retrieval (self , MockClass ):
7574 with self .assertRaises (ConversionException ):
7675 BaseParser (url = 'telnet://127.0.0.1' )
You can’t perform that action at this time.
0 commit comments