Skip to content

Commit 32a4b71

Browse files
committed
chore: tidy up tests
Signed-off-by: Michal Fiedorowicz <[email protected]>
1 parent 487bfcb commit 32a4b71

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

netbox_diode_plugin/tests/test_api_get_default_branch.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def test_get_default_branch_with_branching_plugin_and_branch_set(self):
108108
mock_branch.id = 1
109109

110110
# Create a setting with branch_id
111-
setting = Setting.objects.create(
111+
Setting.objects.create(
112112
diode_target="grpc://localhost:8080/diode",
113113
branch_id=1
114114
)
@@ -132,7 +132,7 @@ def test_get_default_branch_with_branching_plugin_and_branch_set(self):
132132
def test_get_default_branch_exception_handling(self):
133133
"""Test that exceptions during branch retrieval are handled gracefully."""
134134
# Create a setting with branch_id
135-
setting = Setting.objects.create(
135+
Setting.objects.create(
136136
diode_target="grpc://localhost:8080/diode",
137137
branch_id=1
138138
)
@@ -159,4 +159,4 @@ def test_get_default_branch_with_valid_authentication(self):
159159
self.assertEqual(response.status_code, status.HTTP_200_OK)
160160
self.assertIn("branch", response.json())
161161
# Response structure is correct even if branch is None
162-
self.assertIsInstance(response.json(), dict)
162+
self.assertIsInstance(response.json(), dict)

0 commit comments

Comments
 (0)