Commit 0b7d34f 1 parent fb20a97 commit 0b7d34f Copy full SHA for 0b7d34f
File tree 2 files changed +17
-13
lines changed
2 files changed +17
-13
lines changed Original file line number Diff line number Diff line change @@ -756,21 +756,25 @@ def test_get_entry(self):
756
756
self .assertEqual (len (results [0 ]["attrs" ]), entry .attrs .count ())
757
757
self .assertEqual (
758
758
[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
+ ],
765
767
)
766
768
self .assertEqual (
767
769
[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
+ ],
774
778
)
775
779
776
780
# the case to specify only 'entry' parameter
Original file line number Diff line number Diff line change @@ -3834,7 +3834,7 @@ def test_to_dict_entry_for_checking_permission(self):
3834
3834
"id" : entries [2 ].attrs .get (schema__name = "attr1" ).id ,
3835
3835
"schema_id" : entries [2 ].attrs .get (schema__name = "attr1" ).schema .id ,
3836
3836
"name" : "attr1" ,
3837
- "value" : "hoge"
3837
+ "value" : "hoge" ,
3838
3838
},
3839
3839
],
3840
3840
},
You can’t perform that action at this time.
0 commit comments