Skip to content

Commit 949f3a2

Browse files
committed
reformat
1 parent 1565f50 commit 949f3a2

File tree

5 files changed

+7
-16
lines changed

5 files changed

+7
-16
lines changed

api_v1/entry/views.py

+3-9
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def post(self, request):
3030
return Response(
3131
{
3232
"reason": (
33-
"Data overflow was happened. " "Please narrow down intermediate conditions"
33+
"Data overflow was happened. Please narrow down intermediate conditions"
3434
)
3535
},
3636
status=status.HTTP_400_BAD_REQUEST,
@@ -210,10 +210,7 @@ def get(self, request):
210210
)
211211
except ValueError:
212212
return Response(
213-
(
214-
"The older_than parameter accepts for following format "
215-
"'YYYY-MM-DDTHH:MM:SS'"
216-
),
213+
("The older_than parameter accepts for following format 'YYYY-MM-DDTHH:MM:SS'"),
217214
status=status.HTTP_400_BAD_REQUEST,
218215
)
219216

@@ -230,10 +227,7 @@ def get(self, request):
230227
)
231228
except ValueError:
232229
return Response(
233-
(
234-
"The newer_than parameter accepts for following format "
235-
"'YYYY-MM-DDTHH:MM:SS'"
236-
),
230+
("The newer_than parameter accepts for following format 'YYYY-MM-DDTHH:MM:SS'"),
237231
status=status.HTTP_400_BAD_REQUEST,
238232
)
239233

entry/api_v2/views.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ def post(self, request: Request) -> Response:
621621
return Response(
622622
{
623623
"reason": (
624-
"Data overflow was happened. " "Please narrow down intermediate conditions"
624+
"Data overflow was happened. Please narrow down intermediate conditions"
625625
)
626626
},
627627
status=status.HTTP_400_BAD_REQUEST,

entry/tests/test_api_v1.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def test_get_entries_with_special_characters(self):
9595
"/",
9696
"?",
9797
"_",
98-
" " "&",
98+
" &",
9999
"|",
100100
]
101101

entry/tests/test_api_v2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2868,7 +2868,7 @@ def test_import_invalid_data(self):
28682868
"non_field_errors": [
28692869
{
28702870
"code": "AE-121000",
2871-
"message": "Expected a list of items but got type " '"dict".',
2871+
"message": 'Expected a list of items but got type "dict".',
28722872
}
28732873
]
28742874
},

entry/tests/test_view.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -5250,10 +5250,7 @@ def test_import_entry_with_abnormal_entry_which_has_multiple_attrs_of_same_name(
52505250
# Check expected log was dispatched
52515251
self.assertEqual(
52525252
cm.output[0],
5253-
(
5254-
"ERROR:airone:[task.import_entry] "
5255-
"Abnormal entry was detected(entry:%d)" % entry.id
5256-
),
5253+
("ERROR:airone:[task.import_entry] Abnormal entry was detected(entry:%d)" % entry.id),
52575254
)
52585255

52595256
# Check Job processing was ended successfully

0 commit comments

Comments
 (0)