Files
wlan-testing/tests/controller/test_cloud_basic.py
shivamcandela 7f1ede3620 restructured the pytest
Signed-off-by: shivamcandela <shivam.thakur@candelatech.com>
2021-04-12 23:05:22 +05:30

20 lines
501 B
Python

import pytest
from configuration import CLOUDSDK_VERSION
@pytest.mark.sdk_version_check
def test_cloud_sdk_version(instantiate_cloudsdk):
try:
response = instantiate_cloudsdk.portal_ping()
if CLOUDSDK_VERSION['project_version'] == response._project_version and \
CLOUDSDK_VERSION['commit_id'] == response._commit_id:
PASS = True
else:
PASS = False
except Exception as e:
print(e)
PASS = False
assert PASS