Skip to content

Commit

Permalink
resolved errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kanza-latif committed Jan 8, 2025
1 parent 669e58a commit 9850d9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_config_stp.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def mock_db():

# Mock cfgdb as itself to mimic behavior
mock_db.cfgdb = mock_db

# Mock for get_entry with a default side_effect
def get_entry_side_effect(table, entry):
# Define common mock responses based on table and entry
Expand All @@ -81,7 +81,7 @@ def get_entry_side_effect(table, entry):
# You can add more mocked methods as needed, depending on your functions
# Example:
# mock_db.cfgdb.set_entry = MagicMock()

# Return the mock_db object, ready for testing
return mock_db

Expand Down

0 comments on commit 9850d9a

Please sign in to comment.