deepanshuk | 588acf1 | 2021-01-06 16:10:44 +0530 | [diff] [blame] | 1 | # ================================================================================== |
| 2 | # Copyright (c) 2020 HCL Technologies Limited. |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # ================================================================================== |
| 16 | import pytest |
deepanshuk | 91624d7 | 2021-07-06 13:07:04 +0530 | [diff] [blame] | 17 | import pandas as pd |
deepanshuk | 588acf1 | 2021-01-06 16:10:44 +0530 | [diff] [blame] | 18 | |
| 19 | |
| 20 | @pytest.fixture |
| 21 | def ad_to_ts(): |
deepanshuk | 91624d7 | 2021-07-06 13:07:04 +0530 | [diff] [blame] | 22 | ad_to_ts_val = '[{"du-id": 1006, "ue-id": "Car-1", "measTimeStampRf": 1620832626630, "Degradation": "RSRP"}]' |
deepanshuk | 588acf1 | 2021-01-06 16:10:44 +0530 | [diff] [blame] | 23 | return ad_to_ts_val |
deepanshuk | 91624d7 | 2021-07-06 13:07:04 +0530 | [diff] [blame] | 24 | |
| 25 | |
| 26 | @pytest.fixture |
| 27 | def ad_ue(): |
Deepanshu Karnwal | 77f7c38 | 2022-12-10 16:23:18 +0530 | [diff] [blame] | 28 | 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", "RRU.PrbUsedDl", "RF.serving.RSRP", "RF.serving.RSRQ", "RF.serving.RSSINR", "TargetTput", "DRB.UEThpDl", "ue-id", "x", "y", "measTimeStampRf"]) |
deepanshuk | 91624d7 | 2021-07-06 13:07:04 +0530 | [diff] [blame] | 29 | |
| 30 | return ad_ue_val |