-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fixes #58: TypeError: can't multiply sequence by non-int of type 'float'. - Fixes #64 (?): Cryptography functions deprecated - Fixes #65: Performance issues with large queues, sleep only on empty queue. - Fixes #66: Add config params MAX_OUT_QUEUE & MAX_IN_QUEUE to allow queue tuning.
- Loading branch information
Showing
8 changed files
with
79 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
# | ||
# Copyright 2023 Sensors & Signals LLC | ||
# Copyright Sensors & Signals LLC https://www.snstac.com | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
|
@@ -25,18 +25,18 @@ | |
import pytak.crypto_functions | ||
|
||
__author__ = "Greg Albrecht <[email protected]>" | ||
__copyright__ = "Copyright 2023 Sensors & Signals LLC" | ||
__copyright__ = "Copyright Sensors & Signals LLC https://www.snstac.com" | ||
__license__ = "Apache License, Version 2.0" | ||
|
||
|
||
def test_load_preferences(): | ||
def test_load_preferences() -> None: | ||
"""Test loading a preferences file.""" | ||
test_pref: str = "tests/data/test_pref.pref" | ||
prefs: dict = pytak.functions.load_preferences(test_pref, "tests/data") | ||
assert all(prefs) | ||
|
||
|
||
def test_load_connectString2url(): | ||
def test_load_connectString2url() -> None: | ||
"""Test converting a TAK connectString to a URL""" | ||
test_pref: str = "tests/data/test_pref.pref" | ||
prefs: dict = pytak.functions.load_preferences(test_pref, "tests/data") | ||
|
@@ -45,7 +45,7 @@ def test_load_connectString2url(): | |
assert url == "ssl://takserver.example.com:8089" | ||
|
||
|
||
def test_load_cert(): | ||
def test_load_cert() -> None: | ||
cert: list = pytak.crypto_functions.load_cert( | ||
"tests/data/test_user_cert.p12", "atakatak" | ||
) | ||
|