VOL-2642 Add a Makefile, tests, and virtualenv
Convert common python and robot into a CORDRobot python module that can
be installed via standard python tools (pip) and from PyPI
Uses a fork of https://github.com/rasjani/robotframework-importresource,
which has been backported to Python 3.5 (used in Ubuntu 16.04
executors).
Reformatted and moved keywords so resource files are scoped to a
specific topic.
Added tox tests for library consistency
- flake8
- pylint
- robotframework-lint
- Ran robot against installed library to verify it can be loaded and
used
Added basic lint and tests to whole repo
Removed old tests:
- CORD <6.x era: SanityPhyPOD.robot, and onosUtils.py
Change-Id: I61265a9fb04034a086e20be1f7236a8793a218aa
diff --git a/src/test/cord-api/Tests/xos-scale-tests/utils/devices.py b/src/test/cord-api/Tests/xos-scale-tests/utils/devices.py
index 86c6e6b..dd142a8 100644
--- a/src/test/cord-api/Tests/xos-scale-tests/utils/devices.py
+++ b/src/test/cord-api/Tests/xos-scale-tests/utils/devices.py
@@ -12,8 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+from __future__ import absolute_import
+
from tinydb import TinyDB, Query
-from robot.api import logger
+# from robot.api import logger
+
class devices(object):
@@ -119,7 +122,7 @@
formatted for the XOS Rest API
:return: a list of PON Ports
"""
- return self.pon_ports.all();
+ return self.pon_ports.all()
def update_pon_port_id(self, pon_port, id):
"""
@@ -152,7 +155,7 @@
return onus
def get_rest_onus(self):
- return self.onus.all();
+ return self.onus.all()
def update_onu_id(self, onu, id):
Onu = Query()
@@ -178,7 +181,7 @@
return unis
def get_rest_unis(self):
- return self.uni_ports.all();
+ return self.uni_ports.all()
def update_uni_id(self, uni, id):
UniPort = Query()