Skip to content

Commit

Permalink
Ran code through Black linter & styler.
Browse files Browse the repository at this point in the history
  • Loading branch information
ampledata committed Jan 10, 2024
1 parent 25fdf17 commit 3e02e9f
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 14 deletions.
5 changes: 4 additions & 1 deletion takproto/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@
from .constants import TAKProtoVer # NOQA
except ImportError:
import warnings
warnings.warn("Unable to import required modules, ignoring (Python 3.6 build work-around).")

warnings.warn(
"Unable to import required modules, ignoring (Python 3.6 build work-around)."
)

__author__ = "Greg Albrecht <[email protected]>"
__copyright__ = "Copyright Sensors & Signals LLC https://www.snstac.com"
Expand Down
2 changes: 1 addition & 1 deletion takproto/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

class TAKProtoVer(Enum):
"""Enumerator for TAK Protocol Versions."""

XML = 0
MESH = 1
STREAM = 2
1 change: 0 additions & 1 deletion takproto/proto/contact_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion takproto/proto/cotevent_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion takproto/proto/detail_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion takproto/proto/group_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion takproto/proto/precisionlocation_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion takproto/proto/status_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion takproto/proto/takcontrol_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion takproto/proto/takmessage_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion takproto/proto/takv_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion takproto/proto/track_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions tests/test_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ def test_parse_proto_mesh(self):

self.assertEqual(cot_event.type, "a-f-G-E-V-C")
self.assertEqual(cot_event.uid, "aa0b0312-b5cd-4c2c-bbbc-9c4c70216261")
self.assertEqual(cot_event.detail.xmlDetail, '<uid Droid="Eliopoli HQ" /><another test="1" />')
self.assertEqual(
cot_event.detail.xmlDetail,
'<uid Droid="Eliopoli HQ" /><another test="1" />',
)
self.assertEqual(cot_event.detail.contact.callsign, "Eliopoli HQ")

def test_xml2proto_stream(self):
Expand Down Expand Up @@ -122,5 +125,8 @@ def test_parse_proto_stream(self):

self.assertEqual(cot_event.type, "a-f-G-E-V-C")
self.assertEqual(cot_event.uid, "aa0b0312-b5cd-4c2c-bbbc-9c4c70216261")
self.assertEqual(cot_event.detail.xmlDetail, '<uid Droid="Eliopoli HQ" /><another test="1" />')
self.assertEqual(
cot_event.detail.xmlDetail,
'<uid Droid="Eliopoli HQ" /><another test="1" />',
)
self.assertEqual(cot_event.detail.contact.callsign, "Eliopoli HQ")

0 comments on commit 3e02e9f

Please sign in to comment.