Skip to content

Commit

Permalink
Added cisco config platform commands
Browse files Browse the repository at this point in the history
Signed-off-by: Yucai Gu <yucgu@cisco.com>
  • Loading branch information
yucgu committed Sep 8, 2022
1 parent 2867c06 commit dae423f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/config_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1633,14 +1633,15 @@ def setup_class(cls):
#importlib.reload(config.main)

def test_config_platform(self, ctx, get_cmd_module, setup_single_cisco_asic):
expected_output = "firmware"
expected_output = "Enabling TX"
(config, show) = get_cmd_module
db = Db()
runner = CliRunner()
obj = {'config_db': db.cfgdb}
ctx = None
config.config(ctx)
result = runner.invoke(config.config.commands["platform"], ['--help'])
#ctx = None
#config.config(ctx)
#result = runner.invoke(config.config.commands["platform"], ['--help'])
result = runner.invoke(config.config.commands["platform"].commands['cisco'].commands['interface'].commands['tx'].commands['enable'], ['Ethernet60'])

print(result.exit_code)
print(result.output)
Expand Down

0 comments on commit dae423f

Please sign in to comment.