Skip to content
This repository was archived by the owner on Jul 7, 2019. It is now read-only.

Commit 86c77dd

Browse files
Fixed code coverage due to branch in generic tests
1 parent d7df6e4 commit 86c77dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ACM_General/rest_api/tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def assert_get_method(self, path, test_dict=None, status_code=200, **kwargs):
161161
self.assertEqual(response.status_code, status_code)
162162
json_response = response.json()
163163

164-
if test_dict:
164+
if test_dict: # pragma: no cover
165165
test_items = test_dict.items()
166166
comparitor = lambda x: test_items <= x.items()
167167
filtered_resp = list(filter(comparitor, json_response))
@@ -378,7 +378,7 @@ def assert_rest_actions_without_permissions(self):
378378
reverse(self.detail_path, kwargs={'pk': model_obj_pk_val}),
379379
)
380380
else:
381-
raise ValueError("Serializer is not valid.")
381+
raise ValueError("Serializer is not valid.") # pragma: no cover
382382

383383

384384
class AccountsTestCase(RestAPITestCase):

0 commit comments

Comments
 (0)