Extract StcAutoProtocol class, fix autodetection

With the introduction of real abstract classes, it is not possible
anymore to instantiate StcBaseProtocol. Instead, extract some of the
code for autodetection into the new class StcAutoProtocol and use
that for autodetection.
This commit is contained in:
Grigori Goronzy
2017-10-11 02:11:32 +02:00
parent fd923f3a92
commit 030497beb0
3 changed files with 44 additions and 20 deletions

View File

@ -133,4 +133,3 @@ class ProgramTests(unittest.TestCase):
read_mock.side_effect = convert_to_bytes(test_data["responses"])
gal = stcgal.frontend.StcGal(opts)
self.assertEqual(gal.run(), 0)