* feature: Start refactor to new style of get_miner. Needs testing and stability fixes. * feature: refactor to aiohttp and fix a lot of bugs with factory. Still needs support for some miners. * feature: refactor miner class list to be much more readable. * bug: remove some redundant .upper() calls. * bug: remove some redundant .upper() calls. * feature: add Avalonminer support in update miner factory, and add support for A1166 and A1246. * feature: refactor get_miner to allow models to be selected as strings then selected in the top level get_miner function. * bug: fix some naming issues, and add timeout to getting miner model. * bug: fix not instantiating some web sessions properly.
25 lines
1.4 KiB
Python
25 lines
1.4 KiB
Python
# ------------------------------------------------------------------------------
|
|
# Copyright 2022 Upstream Data Inc -
|
|
# -
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
|
# you may not use this file except in compliance with the License. -
|
|
# You may obtain a copy of the License at -
|
|
# -
|
|
# http://www.apache.org/licenses/LICENSE-2.0 -
|
|
# -
|
|
# Unless required by applicable law or agreed to in writing, software -
|
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
|
# See the License for the specific language governing permissions and -
|
|
# limitations under the License. -
|
|
# ------------------------------------------------------------------------------
|
|
|
|
import unittest
|
|
|
|
# from tests.miners_tests import MinerFactoryTest, MinersTest
|
|
from tests.network_tests import NetworkTest
|
|
|
|
if __name__ == "__main__":
|
|
# `coverage run --source pyasic -m unittest discover` will give code coverage data
|
|
unittest.main()
|