Skip to content

Commit ff32694

Browse files
committed
fix gather_attestation_tokens test
Signed-off-by: Maximilian Deubel <[email protected]>
1 parent 83022ea commit ff32694

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_gather_attestation_tokens.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
TEST_ATTESTTOKEN = [b"OK\r\n", b"%ATTESTTOKEN: \"2dn3hQFQUDYxVDkxRPCAIhIbZAFifQNQGv86y_GmR2SiY0wmRsHGVFDT791_BPH8YOWFiyCHND1q.0oRDoQEmoQRBIfZYQGuXwJliinHc6xDPruiyjsaXyXZbZVpUuOhHG9YS8L05VuglCcJhMN4EUhWVGpaHgNnHHno6ahi-d5tOeZmAcNY\"\r\n"]
1515
TEST_CGSN = [b"OK\r\n", b"355025930000000\r\n"]
16+
TEST_CGMM = [b"OK\r\n", b"nRF9151-LACA\r\n"]
1617

1718
class FakeSerial(Mock):
1819
def __init__(self, *args, **kwargs):
@@ -25,6 +26,8 @@ def write(self, data):
2526
self.response = TEST_ATTESTTOKEN
2627
elif data_str.strip() == "AT+CGSN":
2728
self.response = TEST_CGSN
29+
elif data_str.strip() == "AT+CGMM":
30+
self.response = TEST_CGMM
2831
elif len(data_str.strip()) == 0:
2932
self.response = [b"OK\r\n"]
3033
else:

0 commit comments

Comments
 (0)