Skip to content

Commit

Permalink
Update conftest.py
Browse files Browse the repository at this point in the history
  • Loading branch information
carlgsmith authored Jul 2, 2024
1 parent fe92318 commit 850c8b7
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,14 +202,18 @@ def run_around_tests():


def connect():
return manager.connect(host=host,
port=port,
username=username,
password=password,
hostkey_verify=False,
allow_agent=False,
look_for_keys=False)

manager.logging.basicConfig(filename='ncclient.log', level=manager.logging.DEBUG)
try:
return manager.connect(host=host,
port=port,
username=username,
password=password,
hostkey_verify=False,
allow_agent=False,
look_for_keys=False)
except:
os.system("cat ncclient.log")
raise

def toXML(xml_str):
parser = etree.XMLParser(remove_blank_text=True)
Expand Down

0 comments on commit 850c8b7

Please sign in to comment.