-
Notifications
You must be signed in to change notification settings - Fork 667
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b0d190e
commit 98000a4
Showing
4 changed files
with
34 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# MONKEY PATCH!!! | ||
import mock | ||
from sonic_py_common import multi_asic | ||
|
||
def mock_get_num_asics(): | ||
return 1 | ||
|
||
def mock_is_multi_asic(): | ||
return False | ||
|
||
def mock_get_namespace_list(namespace=None): | ||
return [''] | ||
|
||
multi_asic.is_multi_asic = mock_is_multi_asic | ||
multi_asic.get_num_asics = mock_get_num_asics | ||
multi_asic.get_namespace_list = mock_get_namespace_list |