Update test

This commit is contained in:
shekhar-cis 2022-08-19 16:41:52 +05:30
parent a5c8ca58f7
commit 885c7f5de5
Signed by untrusted user: shekhar-cis
GPG Key ID: F4F00AB04E83F9A7

View File

@ -5,7 +5,6 @@ from .common import skip_screen_checks
from .common import ordered
class TestLoadScreenData(unittest.TestCase):
"""Screen Data Json test"""
@ -13,8 +12,7 @@ class TestLoadScreenData(unittest.TestCase):
@ordered
def test_load_json(self):
"""Test to load a valid json"""
file_name = 'screens_data.json'
loaded_screen_names = load_screen_json(file_name)
loaded_screen_names = load_screen_json()
self.assertEqual(loaded_screen_names[2], 'success')
@skip_screen_checks
@ -22,5 +20,5 @@ class TestLoadScreenData(unittest.TestCase):
def test_load_invalid_file(self):
"""Test to load an invalid json"""
file_name = 'invalid_screens_data.json'
loaded_screen_names = load_screen_json(file_name)
self.assertEqual(loaded_screen_names[2], 'File not found')
with self.assertRaises(OSError):
load_screen_json(file_name)