Skip to content

Commit

Permalink
auto_tests moved to MS05Utils
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-r-thorpe committed Feb 21, 2025
1 parent edefc71 commit b101d44
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions nmostesting/suites/BCP0080101Test.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
from ..IS12Utils import IS12Utils
from ..MS05Utils import NcMethodStatus, NcObjectProperties, NcPropertyId, NcTouchpointNmos
from ..TestHelper import get_default_ip, get_mocks_hostname
from .MS0501Test import MS0501Test

from .. import Config as CONFIG

Expand Down Expand Up @@ -100,7 +99,6 @@ def __init__(self, apis, node, **kwargs):
# Instantiate MS0501Tests to access automatic tests
# Hmmm, should the automatic tests be factored into the utils to allow all
# MS-05 based test suites to access them?
self.ms0502Test = MS0501Test(apis, self.is12_utils, **kwargs)
self.is05_utils = IS05Utils(self.apis[CONN_API_KEY]["url"])
self.node_url = apis[NODE_API_KEY]["url"]
self.ncp_url = apis[CONTROL_API_KEY]["url"]
Expand All @@ -110,7 +108,7 @@ def __init__(self, apis, node, **kwargs):
self.mock_node_base_url = ""

def set_up_tests(self):
self.ms0502Test.set_up_tests()
self.is12_utils.reset()
self.is12_utils.open_ncp_websocket()
super().set_up_tests()

Expand All @@ -121,11 +119,11 @@ def set_up_tests(self):
# Initialize cached test results
self.check_touchpoint_metadata = BCP0080101Test.TestMetadata()

# Override basics to include the MS-05 auto tests
# Override basics to include auto tests
def basics(self):
results = super().basics()
try:
results += self.ms0502Test._auto_tests()
results += self.is12_utils.auto_tests()
except NMOSTestException as e:
results.append(e.args[0])
except Exception as e:
Expand Down

0 comments on commit b101d44

Please sign in to comment.