summaryrefslogtreecommitdiff
path: root/common/read_data.py
blob: 69d6478c4e70f511c5e123768e58d6c07bc47cfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import json

class ReadData:
    def __init__(self):
        print(__file__)

    @property
    def read_from_json(self):
        with open("C:/zcw/aoto_selenium/testdata/demo1_data.json", "r") as f:
            data = json.load(f)["item"]
            data = list(data)
            return data


if __name__ == '__main__':
    ReadData().read_from_json