Skip to content

Commit

Permalink
Update test, proprietary sentence just got updated
Browse files Browse the repository at this point in the history
  • Loading branch information
kamiccolo committed Jan 26, 2024
1 parent 167403c commit a835ee7
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions test/test_proprietary.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,20 +63,12 @@ class ABC(pynmea2.ProprietarySentence):


def test_proprietary_with_comma():
# class with no extra comma
class TNLDG(pynmea2.tnl.TNL):
fields = ()

# raise Exception(TNL.sentence_types)
# raise Exception(pynmea2.ProprietarySentence.sentence_types)

data = "$PTNLDG,44.0,33.0,287.0,100,0,4,1,0,,,*3E"
msg = pynmea2.parse(data)
assert isinstance(msg, TNLDG)
assert isinstance(msg, pynmea2.tnl.TNLDG)
assert msg.data == ['DG', '44.0', '33.0', '287.0', '100', '0', '4', '1', '0', '', '', '']
assert str(msg) == data


# type with extra comma

data = '$PTNL,PJT,NAD83(Conus),CaliforniaZone 4 0404*51'
Expand Down

0 comments on commit a835ee7

Please sign in to comment.