9fb7ac3d0c80a711d9e34db99c4f5c979a62e681
[ric-app/ad.git] / tests / conftest.py
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
17 import pandas as pd
18
19
20 @pytest.fixture
21 def ad_to_ts():
22     ad_to_ts_val = '[{"du-id": 1006, "ue-id": "Car-1", "measTimeStampRf": 1620832626630, "Degradation": "RSRP"}]'
23     return ad_to_ts_val
24
25
26 @pytest.fixture
27 def ad_ue():
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", "prb_usage", "rsrp", "rsrq", "rssinr", "TargetTput", "throughput", "ue-id", "x", "y", "measTimeStampRf"])
29
30     return ad_ue_val