X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=tests%2Fconftest.py;h=9fb7ac3d0c80a711d9e34db99c4f5c979a62e681;hb=4674f4ac8cbb4f1ca549f6acf32555d9d14c28cb;hp=fdfe662fe10fbbd42a1524c5dd86544204bb457d;hpb=f98ee76af036d60b8f5077105830ed61a13ed5aa;p=ric-app%2Fad.git diff --git a/tests/conftest.py b/tests/conftest.py index fdfe662..9fb7ac3 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -14,9 +14,17 @@ # limitations under the License. # ================================================================================== import pytest +import pandas as pd @pytest.fixture def ad_to_ts(): - ad_to_ts_val = '[{"UEID": 12371, "MeasTimestampRF": "2020-11-25 16:14:25.140140"}]' + ad_to_ts_val = '[{"du-id": 1006, "ue-id": "Car-1", "measTimeStampRf": 1620832626630, "Degradation": "RSRP"}]' return ad_to_ts_val + + +@pytest.fixture +def ad_ue(): + ad_ue_val = pd.DataFrame([[1002, "c2/B13", 8, 69, 65, 113, 0.1, 0.1, "Waiting passenger 9", -882, -959, pd.to_datetime("2021-05-12T07:43:51.652")]], columns=["du-id", "ServingCellId", "prb_usage", "rsrp", "rsrq", "rssinr", "TargetTput", "throughput", "ue-id", "x", "y", "measTimeStampRf"]) + + return ad_ue_val