X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=tests%2Ftest_xapps.py;h=3706f302af93f34bd66130dc56728585e0eaae79;hb=2650675e23003fa2d2dca319a72ba04e92316634;hp=6aa32dabefcd4bdc7d9922df24cf859cfea7a2b1;hpb=750eb5b040db75fae264da5e422038e08e5da345;p=ric-plt%2Fxapp-frame-py.git diff --git a/tests/test_xapps.py b/tests/test_xapps.py index 6aa32da..3706f30 100644 --- a/tests/test_xapps.py +++ b/tests/test_xapps.py @@ -17,7 +17,9 @@ import json import time from contextlib import suppress -from ricxappframe.xapp_frame import _BaseXapp, Xapp, RMRXapp, RIC_HEALTH_CHECK_REQ, RIC_HEALTH_CHECK_RESP + +from ricxappframe.util.constants import Constants +from ricxappframe.xapp_frame import _BaseXapp, Xapp, RMRXapp from ricxappframe.constants import sdl_namespaces rmr_xapp = None @@ -87,7 +89,7 @@ def test_rmr_healthcheck(): health_pay = None def post_init(self): - self.rmr_send(b"", RIC_HEALTH_CHECK_REQ) + self.rmr_send(b"", Constants.RIC_HEALTH_CHECK_REQ) def default_handler(self, summary, sbuf): pass @@ -100,7 +102,7 @@ def test_rmr_healthcheck(): health_pay = summary["payload"] self.rmr_free(sbuf) - rmr_xapp_health.register_callback(health_handler, RIC_HEALTH_CHECK_RESP) + rmr_xapp_health.register_callback(health_handler, Constants.RIC_HEALTH_CHECK_RESP) rmr_xapp_health.run(thread=True) # in unit tests we need to thread here or else execution is not returned! time.sleep(1)