From 57e9900cf814221c85e6dc6b02f313703a574e98 Mon Sep 17 00:00:00 2001 From: thijs snijder <snijder@astron.nl> Date: Wed, 20 Apr 2022 08:50:02 +0200 Subject: [PATCH] fixed type error in test --- .../tangostationcontrol/test/clients/test_snmp_client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tangostationcontrol/tangostationcontrol/test/clients/test_snmp_client.py b/tangostationcontrol/tangostationcontrol/test/clients/test_snmp_client.py index b299087ec..2ee56f5e9 100644 --- a/tangostationcontrol/tangostationcontrol/test/clients/test_snmp_client.py +++ b/tangostationcontrol/tangostationcontrol/test/clients/test_snmp_client.py @@ -59,7 +59,7 @@ class server_imitator: for _i in range(dims[0]): read_val.append((None, snmp_type(1))) else: - raise Exception("Image not yet supported :(") + raise Exception("Image not supported :(") return read_val @@ -72,14 +72,14 @@ class server_imitator: if dims == self.dim_list["scalar"]: snmp_type_dict = {hlapi.ObjectIdentity:"1.3.6.1.2.1.1.1.0.1", hlapi.IpAddress: "1.1.1.1", - str: "1"} + hlapi.OctetString: "1"} check_val = 1 for k,v in snmp_type_dict.items(): if snmp_type is k: check_val = v elif dims == self.dim_list["spectrum"]: snmp_type_dict = {hlapi.ObjectIdentity:["1.3.6.1.2.1.1.1.0.1"] * dims[0], hlapi.IpAddress: ["1.1.1.1"] * dims[0], - str: ["1"] * dims[0]} + hlapi.OctetString: ["1"] * dims[0]} check_val = check_val = [1] * dims[0] for k,v in snmp_type_dict.items(): if snmp_type is k: check_val = v -- GitLab