Zack Williams | 821c502 | 2020-01-15 15:11:46 -0700 | [diff] [blame^] | 1 | # Copyright 2017-present Open Networking Foundation |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
| 15 | from __future__ import absolute_import |
| 16 | |
| 17 | import os |
| 18 | |
| 19 | from .CORDDictUtils import CORDDictUtils |
| 20 | from .restApi import restApi |
| 21 | from .testCaseUtils import TestCaseUtils |
| 22 | |
| 23 | |
| 24 | # return the library version |
| 25 | def _version_(): |
| 26 | with open(os.path.join(os.path.dirname(__file__), "VERSION")) as f: |
| 27 | return f.read().strip() |
| 28 | |
| 29 | |
| 30 | # Inherit all the other sub-classes |
| 31 | class CORDRobot(CORDDictUtils, restApi, TestCaseUtils): |
| 32 | |
| 33 | ROBOT_LIBRARY_SCOPE = "GLOBAL" |
| 34 | |
| 35 | def cr_version(self): |
| 36 | return _version_() |