Skip to content

Commit

Permalink
enhance SEC test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
semuadmin committed Sep 2, 2024
1 parent ad79d86 commit 4f7799a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Binary file modified tests/pygpsdata-SEC.log
Binary file not shown.
3 changes: 2 additions & 1 deletion tests/test_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ def testSEC(
"<UBX(SEC-SIGLOG, version=1, numEvents=0, reserved0=437116469248)>",
"<UBX(SEC-OSNMA, version=3, headerAuthStatus=0, nmaStatus=0, chainInForce=0, CPKS=0, osnmaEnabled=0, numSVs=0, nmaHeaderUpdate=0, timSyncEnabled=0, timSyncStatus=0, timSyncReqDiff=0, reserved0=1, dsmAuthenticationStatus=0, hashFunction=0, macFunction=0, pubKeyId=0, macLookupTable=0, keySize=0, macSize=0, fromNVS=0, teslaKeyAuthStatus=1, wnSf=2254, towSf=203, chainId=0, authSVs=0, authNumTim=16, timingAuthResult=0, macAdkdType=0, pubKeySrc=0, merkleRootSrc=0, merkleRootVal=0, futureMerkleRootSrc=0, futureMerkleRootVal=0, pubKeyVal=0, futurePubKeyVal=0, futurePubKeySrc=0, futurePubKeyId=0)>",
"<UBX(SEC-SIGLOG, version=1, numEvents=0, reserved0=437182005248)>",
"<UBX(SEC-SIG, version=1, reserved0=0, jamDetEnabled=1, jammingState=2, reserved1=0, spfDetEnabled=1, spoofingState=3, reserved2=0)>",
)
i = 0
with open(os.path.join(DIRNAME, "pygpsdata-SEC.log"), "rb") as stream:
Expand All @@ -299,7 +300,7 @@ def testSEC(
# print(f'"{parsed}",')
self.assertEqual(str(parsed), EXPECTED_RESULTS[i])
i += 1
self.assertEqual(i, 6)
self.assertEqual(i, 7)

def testCFGLOG(
self,
Expand Down

0 comments on commit 4f7799a

Please sign in to comment.