Skip to content

Commit 0b7d34f

Browse files
committed
Reformat test implementations by ruff to pass lint check
1 parent fb20a97 commit 0b7d34f

File tree

2 files changed

+17
-13
lines changed

2 files changed

+17
-13
lines changed

api_v1/tests/test_api.py

+16-12
Original file line numberDiff line numberDiff line change
@@ -756,21 +756,25 @@ def test_get_entry(self):
756756
self.assertEqual(len(results[0]["attrs"]), entry.attrs.count())
757757
self.assertEqual(
758758
[x for x in results[0]["attrs"] if x["name"] == "group"],
759-
[{
760-
"id": entry.attrs.get(schema__name="group").id,
761-
"schema_id": entry.attrs.get(schema__name="group").schema.id,
762-
"name": "group",
763-
"value": "group1"
764-
}],
759+
[
760+
{
761+
"id": entry.attrs.get(schema__name="group").id,
762+
"schema_id": entry.attrs.get(schema__name="group").schema.id,
763+
"name": "group",
764+
"value": "group1",
765+
}
766+
],
765767
)
766768
self.assertEqual(
767769
[x for x in results[0]["attrs"] if x["name"] == "groups"],
768-
[{
769-
"id": entry.attrs.get(schema__name="groups").id,
770-
"schema_id": entry.attrs.get(schema__name="groups").schema.id,
771-
"name": "groups",
772-
"value": ["group1", "group2"]
773-
}],
770+
[
771+
{
772+
"id": entry.attrs.get(schema__name="groups").id,
773+
"schema_id": entry.attrs.get(schema__name="groups").schema.id,
774+
"name": "groups",
775+
"value": ["group1", "group2"],
776+
}
777+
],
774778
)
775779

776780
# the case to specify only 'entry' parameter

entry/tests/test_model.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3834,7 +3834,7 @@ def test_to_dict_entry_for_checking_permission(self):
38343834
"id": entries[2].attrs.get(schema__name="attr1").id,
38353835
"schema_id": entries[2].attrs.get(schema__name="attr1").schema.id,
38363836
"name": "attr1",
3837-
"value": "hoge"
3837+
"value": "hoge",
38383838
},
38393839
],
38403840
},

0 commit comments

Comments
 (0)