Skip to content

Commit c0c3cce

Browse files
author
Praveen Chaudhary
authored
[config/config_mgmt.py]: Fix typo and enable test for tablesWithOutYang() (sonic-net#1012)
Fix typo and enable test for tablesWithOutYang() Signed-off-by: Praveen Chaudhary [email protected]
1 parent c6c5be1 commit c0c3cce

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

config/config_mgmt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def __init__(self, source="configDB", debug=False, allowTablesWithoutYang=True):
8383
def __del__(self):
8484
pass
8585

86-
def tablesWithoutYang(self):
86+
def tablesWithOutYang(self):
8787
'''
8888
Return tables loaded in config for which YANG model does not exist.
8989

sonic-utilities-tests/config_mgmt_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def test_table_without_yang(self):
3232
self.updateConfig(curConfig, unknown)
3333
self.writeJson(curConfig, config_mgmt.CONFIG_DB_JSON_FILE)
3434
cm = config_mgmt.ConfigMgmt(source=config_mgmt.CONFIG_DB_JSON_FILE)
35-
#assert "unknown_table" in cm.tablesWithoutYang()
35+
assert "unknown_table" in cm.tablesWithOutYang()
3636
return
3737

3838
def test_search_keys(self):

0 commit comments

Comments
 (0)