Skip to content

Commit 84a8b37

Browse files
Fix ut issue
1 parent d2df20f commit 84a8b37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/syslog_test.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ def test_enable_syslog_rate_limit_feature(self, mock_run):
410410

411411
mock_run.return_value = ('something', 0)
412412
result = runner.invoke(
413-
config.config.commands["syslog"].commands["rate-limit-feature"].commands["enable"]
413+
config.config.commands["syslog"].commands["rate-limit-feature"].commands["enable"], obj=db
414414
)
415415
assert result.exit_code == SUCCESS
416416

@@ -424,6 +424,6 @@ def test_disable_syslog_rate_limit_feature(self, mock_run):
424424

425425
mock_run.return_value = ('something', 0)
426426
result = runner.invoke(
427-
config.config.commands["syslog"].commands["rate-limit-feature"].commands["disable"]
427+
config.config.commands["syslog"].commands["rate-limit-feature"].commands["disable"], obj=db
428428
)
429429
assert result.exit_code == SUCCESS

0 commit comments

Comments
 (0)