-
Notifications
You must be signed in to change notification settings - Fork 844
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1302 from thingsboard/tests-improvement
Tests improvement
- Loading branch information
Showing
169 changed files
with
6,462 additions
and
703 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
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 |
---|---|---|
|
@@ -14,5 +14,5 @@ mmh3 | |
protobuf<=3.20.0 | ||
cachetools | ||
cryptography==3.4.* | ||
tb-mqtt-client>=1.5 | ||
tb-mqtt-client>=1.7.1 | ||
service-identity |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import logging | ||
from sys import stdout | ||
from unittest import TestCase | ||
from tests.test_utils.gateway_device_util import GatewayDeviceUtil | ||
|
||
logging.basicConfig(level=logging.DEBUG, | ||
format='%(asctime)s - %(levelname)s - %(module)s - %(lineno)d - %(message)s', | ||
datefmt='%Y-%m-%d %H:%M:%S') | ||
|
||
LOG = logging.getLogger("TEST") | ||
LOG.level = logging.DEBUG | ||
stream_handler = logging.StreamHandler(stdout) | ||
LOG.addHandler(stream_handler) | ||
|
||
|
||
class BaseTest(TestCase): | ||
|
||
def __init__(self, *args, **kwargs): | ||
super().__init__(*args, **kwargs) | ||
self.log = LOG | ||
|
||
@classmethod | ||
def setUpClass(cls): | ||
GatewayDeviceUtil.get_gateway_device() | ||
|
||
@classmethod | ||
def tearDownClass(cls): | ||
GatewayDeviceUtil.delete_gateway_device() | ||
assert GatewayDeviceUtil.GATEWAY_DEVICE is None |
Empty file.
Empty file.
Empty file.
Oops, something went wrong.