| 1 | ./runtests.py model_fields.test_jsonfield
|
|---|
| 2 | Testing against Django installed in '/django/django' with up to 8 processes
|
|---|
| 3 | Found 94 test(s).
|
|---|
| 4 | Creating test database for alias 'default'...
|
|---|
| 5 | Creating test user...
|
|---|
| 6 | System check identified no issues (0 silenced).
|
|---|
| 7 | ...ss.sss.s.FF...............F.sF..FFFFEFs.FF.......FF...F.FFFF...F..Fs..s..s.s..............
|
|---|
| 8 | ======================================================================
|
|---|
| 9 | ERROR: test_key_quoted_string (model_fields.test_jsonfield.TestQuerying)
|
|---|
| 10 | ----------------------------------------------------------------------
|
|---|
| 11 | Traceback (most recent call last):
|
|---|
| 12 | File "/django/tests/model_fields/test_jsonfield.py", line 1017, in test_key_quoted_string
|
|---|
| 13 | NullableJSONModel.objects.filter(value__o='"quoted"').get(),
|
|---|
| 14 | File "/django/django/db/models/query.py", line 646, in get
|
|---|
| 15 | raise self.model.DoesNotExist(
|
|---|
| 16 | model_fields.models.NullableJSONModel.DoesNotExist: NullableJSONModel matching query does not exist.
|
|---|
| 17 |
|
|---|
| 18 | ======================================================================
|
|---|
| 19 | FAIL: test_deep_lookup_mixed (model_fields.test_jsonfield.TestQuerying)
|
|---|
| 20 | ----------------------------------------------------------------------
|
|---|
| 21 | Traceback (most recent call last):
|
|---|
| 22 | File "/django/tests/model_fields/test_jsonfield.py", line 817, in test_deep_lookup_mixed
|
|---|
| 23 | self.assertSequenceEqual(
|
|---|
| 24 | AssertionError: Sequences differ: <QuerySet []> != [<NullableJSONModel: NullableJSONModel object (7)>]
|
|---|
| 25 |
|
|---|
| 26 | Second sequence contains 1 additional elements.
|
|---|
| 27 | First extra element 0:
|
|---|
| 28 | <NullableJSONModel: NullableJSONModel object (7)>
|
|---|
| 29 |
|
|---|
| 30 | - <QuerySet []>
|
|---|
| 31 | + [<NullableJSONModel: NullableJSONModel object (7)>]
|
|---|
| 32 |
|
|---|
| 33 | ======================================================================
|
|---|
| 34 | FAIL: test_deep_lookup_objs (model_fields.test_jsonfield.TestQuerying)
|
|---|
| 35 | ----------------------------------------------------------------------
|
|---|
| 36 | Traceback (most recent call last):
|
|---|
| 37 | File "/django/tests/model_fields/test_jsonfield.py", line 799, in test_deep_lookup_objs
|
|---|
| 38 | self.assertSequenceEqual(
|
|---|
| 39 | AssertionError: Sequences differ: <QuerySet []> != [<NullableJSONModel: NullableJSONModel object (7)>]
|
|---|
| 40 |
|
|---|
| 41 | Second sequence contains 1 additional elements.
|
|---|
| 42 | First extra element 0:
|
|---|
| 43 | <NullableJSONModel: NullableJSONModel object (7)>
|
|---|
| 44 |
|
|---|
| 45 | - <QuerySet []>
|
|---|
| 46 | + [<NullableJSONModel: NullableJSONModel object (7)>]
|
|---|
| 47 |
|
|---|
| 48 | ======================================================================
|
|---|
| 49 | FAIL: test_isnull_key_or_none (model_fields.test_jsonfield.TestQuerying)
|
|---|
| 50 | ----------------------------------------------------------------------
|
|---|
| 51 | Traceback (most recent call last):
|
|---|
| 52 | File "/django/tests/model_fields/test_jsonfield.py", line 751, in test_isnull_key_or_none
|
|---|
| 53 | self.assertCountEqual(
|
|---|
| 54 | AssertionError: Element counts were not equal:
|
|---|
| 55 | First has 0, Second has 1: <NullableJSONModel: NullableJSONModel object (13)>
|
|---|
| 56 |
|
|---|
| 57 | ======================================================================
|
|---|
| 58 | FAIL: test_key_endswith (model_fields.test_jsonfield.TestQuerying)
|
|---|
| 59 | ----------------------------------------------------------------------
|
|---|
| 60 | Traceback (most recent call last):
|
|---|
| 61 | File "/django/tests/model_fields/test_jsonfield.py", line 996, in test_key_endswith
|
|---|
| 62 | self.assertIs(
|
|---|
| 63 | AssertionError: False is not True
|
|---|
| 64 |
|
|---|
| 65 | ======================================================================
|
|---|
| 66 | FAIL: test_key_iendswith (model_fields.test_jsonfield.TestQuerying)
|
|---|
| 67 | ----------------------------------------------------------------------
|
|---|
| 68 | Traceback (most recent call last):
|
|---|
| 69 | File "/django/tests/model_fields/test_jsonfield.py", line 1001, in test_key_iendswith
|
|---|
| 70 | self.assertIs(
|
|---|
| 71 | AssertionError: False is not True
|
|---|
| 72 |
|
|---|
| 73 | ======================================================================
|
|---|
| 74 | FAIL: test_key_iexact (model_fields.test_jsonfield.TestQuerying)
|
|---|
| 75 | ----------------------------------------------------------------------
|
|---|
| 76 | Traceback (most recent call last):
|
|---|
| 77 | File "/django/tests/model_fields/test_jsonfield.py", line 903, in test_key_iexact
|
|---|
| 78 | self.assertIs(
|
|---|
| 79 | AssertionError: False is not True
|
|---|
| 80 |
|
|---|
| 81 | ======================================================================
|
|---|
| 82 | FAIL: test_key_in (model_fields.test_jsonfield.TestQuerying) (lookup='value__foo__in', value=['bar'])
|
|---|
| 83 | ----------------------------------------------------------------------
|
|---|
| 84 | Traceback (most recent call last):
|
|---|
| 85 | File "/django/tests/model_fields/test_jsonfield.py", line 938, in test_key_in
|
|---|
| 86 | self.assertCountEqual(
|
|---|
| 87 | AssertionError: Element counts were not equal:
|
|---|
| 88 | First has 0, Second has 1: <NullableJSONModel: NullableJSONModel object (10)>
|
|---|
| 89 |
|
|---|
| 90 | ======================================================================
|
|---|
| 91 | FAIL: test_key_in (model_fields.test_jsonfield.TestQuerying) (lookup='value__foo__in', value=['bar', 'baz'])
|
|---|
| 92 | ----------------------------------------------------------------------
|
|---|
| 93 | Traceback (most recent call last):
|
|---|
| 94 | File "/django/tests/model_fields/test_jsonfield.py", line 938, in test_key_in
|
|---|
| 95 | self.assertCountEqual(
|
|---|
| 96 | AssertionError: Element counts were not equal:
|
|---|
| 97 | First has 0, Second has 1: <NullableJSONModel: NullableJSONModel object (10)>
|
|---|
| 98 |
|
|---|
| 99 | ======================================================================
|
|---|
| 100 | FAIL: test_key_iregex (model_fields.test_jsonfield.TestQuerying)
|
|---|
| 101 | ----------------------------------------------------------------------
|
|---|
| 102 | Traceback (most recent call last):
|
|---|
| 103 | File "/django/tests/model_fields/test_jsonfield.py", line 1011, in test_key_iregex
|
|---|
| 104 | self.assertIs(
|
|---|
| 105 | AssertionError: False is not True
|
|---|
| 106 |
|
|---|
| 107 | ======================================================================
|
|---|
| 108 | FAIL: test_key_istartswith (model_fields.test_jsonfield.TestQuerying)
|
|---|
| 109 | ----------------------------------------------------------------------
|
|---|
| 110 | Traceback (most recent call last):
|
|---|
| 111 | File "/django/tests/model_fields/test_jsonfield.py", line 991, in test_key_istartswith
|
|---|
| 112 | self.assertIs(
|
|---|
| 113 | AssertionError: False is not True
|
|---|
| 114 |
|
|---|
| 115 | ======================================================================
|
|---|
| 116 | FAIL: test_key_regex (model_fields.test_jsonfield.TestQuerying)
|
|---|
| 117 | ----------------------------------------------------------------------
|
|---|
| 118 | Traceback (most recent call last):
|
|---|
| 119 | File "/django/tests/model_fields/test_jsonfield.py", line 1006, in test_key_regex
|
|---|
| 120 | self.assertIs(
|
|---|
| 121 | AssertionError: False is not True
|
|---|
| 122 |
|
|---|
| 123 | ======================================================================
|
|---|
| 124 | FAIL: test_key_startswith (model_fields.test_jsonfield.TestQuerying)
|
|---|
| 125 | ----------------------------------------------------------------------
|
|---|
| 126 | Traceback (most recent call last):
|
|---|
| 127 | File "/django/tests/model_fields/test_jsonfield.py", line 986, in test_key_startswith
|
|---|
| 128 | self.assertIs(
|
|---|
| 129 | AssertionError: False is not True
|
|---|
| 130 |
|
|---|
| 131 | ======================================================================
|
|---|
| 132 | FAIL: test_key_text_transform_char_lookup (model_fields.test_jsonfield.TestQuerying)
|
|---|
| 133 | ----------------------------------------------------------------------
|
|---|
| 134 | Traceback (most recent call last):
|
|---|
| 135 | File "/django/tests/model_fields/test_jsonfield.py", line 549, in test_key_text_transform_char_lookup
|
|---|
| 136 | self.assertSequenceEqual(qs, [self.objs[7]])
|
|---|
| 137 | AssertionError: Sequences differ: <QuerySet []> != [<NullableJSONModel: NullableJSONModel object (10)>]
|
|---|
| 138 |
|
|---|
| 139 | Second sequence contains 1 additional elements.
|
|---|
| 140 | First extra element 0:
|
|---|
| 141 | <NullableJSONModel: NullableJSONModel object (10)>
|
|---|
| 142 |
|
|---|
| 143 | - <QuerySet []>
|
|---|
| 144 | + [<NullableJSONModel: NullableJSONModel object (10)>]
|
|---|
| 145 |
|
|---|
| 146 | ======================================================================
|
|---|
| 147 | FAIL: test_lookup_exclude (model_fields.test_jsonfield.TestQuerying)
|
|---|
| 148 | ----------------------------------------------------------------------
|
|---|
| 149 | Traceback (most recent call last):
|
|---|
| 150 | File "/django/tests/model_fields/test_jsonfield.py", line 839, in test_lookup_exclude
|
|---|
| 151 | self.assertCountEqual(
|
|---|
| 152 | AssertionError: Element counts were not equal:
|
|---|
| 153 | First has 1, Second has 0: <NullableJSONModel: NullableJSONModel object (6)>
|
|---|
| 154 | First has 1, Second has 0: <NullableJSONModel: NullableJSONModel object (7)>
|
|---|
| 155 |
|
|---|
| 156 | ======================================================================
|
|---|
| 157 | FAIL: test_lookup_exclude_nonexistent_key (model_fields.test_jsonfield.TestQuerying)
|
|---|
| 158 | ----------------------------------------------------------------------
|
|---|
| 159 | Traceback (most recent call last):
|
|---|
| 160 | File "/django/tests/model_fields/test_jsonfield.py", line 853, in test_lookup_exclude_nonexistent_key
|
|---|
| 161 | self.assertCountEqual(
|
|---|
| 162 | AssertionError: Element counts were not equal:
|
|---|
| 163 | First has 1, Second has 0: <NullableJSONModel: NullableJSONModel object (9)>
|
|---|
| 164 |
|
|---|
| 165 | ======================================================================
|
|---|
| 166 | FAIL: test_nested_key_transform_on_subquery (model_fields.test_jsonfield.TestQuerying)
|
|---|
| 167 | ----------------------------------------------------------------------
|
|---|
| 168 | Traceback (most recent call last):
|
|---|
| 169 | File "/django/tests/model_fields/test_jsonfield.py", line 532, in test_nested_key_transform_on_subquery
|
|---|
| 170 | self.assertSequenceEqual(
|
|---|
| 171 | AssertionError: Sequences differ: <QuerySet []> != [<NullableJSONModel: NullableJSONModel object (7)>]
|
|---|
| 172 |
|
|---|
| 173 | Second sequence contains 1 additional elements.
|
|---|
| 174 | First extra element 0:
|
|---|
| 175 | <NullableJSONModel: NullableJSONModel object (7)>
|
|---|
| 176 |
|
|---|
| 177 | - <QuerySet []>
|
|---|
| 178 | + [<NullableJSONModel: NullableJSONModel object (7)>]
|
|---|
| 179 |
|
|---|
| 180 | ======================================================================
|
|---|
| 181 | FAIL: test_none_key (model_fields.test_jsonfield.TestQuerying)
|
|---|
| 182 | ----------------------------------------------------------------------
|
|---|
| 183 | Traceback (most recent call last):
|
|---|
| 184 | File "/django/tests/model_fields/test_jsonfield.py", line 759, in test_none_key
|
|---|
| 185 | self.assertSequenceEqual(
|
|---|
| 186 | AssertionError: Sequences differ: <QuerySet []> != [<NullableJSONModel: NullableJSONModel object (7)>]
|
|---|
| 187 |
|
|---|
| 188 | Second sequence contains 1 additional elements.
|
|---|
| 189 | First extra element 0:
|
|---|
| 190 | <NullableJSONModel: NullableJSONModel object (7)>
|
|---|
| 191 |
|
|---|
| 192 | - <QuerySet []>
|
|---|
| 193 | + [<NullableJSONModel: NullableJSONModel object (7)>]
|
|---|
| 194 |
|
|---|
| 195 | ======================================================================
|
|---|
| 196 | FAIL: test_none_key_and_exact_lookup (model_fields.test_jsonfield.TestQuerying)
|
|---|
| 197 | ----------------------------------------------------------------------
|
|---|
| 198 | Traceback (most recent call last):
|
|---|
| 199 | File "/django/tests/model_fields/test_jsonfield.py", line 1056, in test_none_key_and_exact_lookup
|
|---|
| 200 | self.assertSequenceEqual(
|
|---|
| 201 | AssertionError: Sequences differ: <QuerySet []> != [<NullableJSONModel: NullableJSONModel object (7)>]
|
|---|
| 202 |
|
|---|
| 203 | Second sequence contains 1 additional elements.
|
|---|
| 204 | First extra element 0:
|
|---|
| 205 | <NullableJSONModel: NullableJSONModel object (7)>
|
|---|
| 206 |
|
|---|
| 207 | - <QuerySet []>
|
|---|
| 208 | + [<NullableJSONModel: NullableJSONModel object (7)>]
|
|---|
| 209 |
|
|---|
| 210 | ======================================================================
|
|---|
| 211 | FAIL: test_none_key_exclude (model_fields.test_jsonfield.TestQuerying)
|
|---|
| 212 | ----------------------------------------------------------------------
|
|---|
| 213 | Traceback (most recent call last):
|
|---|
| 214 | File "/django/tests/model_fields/test_jsonfield.py", line 769, in test_none_key_exclude
|
|---|
| 215 | self.assertSequenceEqual(
|
|---|
| 216 | AssertionError: Sequences differ: <QuerySet [<NullableJSONModel: NullableJS[375 chars]7)>]> != [<NullableJSONModel: NullableJSONModel ob[313 chars]17)>]
|
|---|
| 217 |
|
|---|
| 218 | First differing element 3:
|
|---|
| 219 | <NullableJSONModel: NullableJSONModel object (7)>
|
|---|
| 220 | <NullableJSONModel: NullableJSONModel object (8)>
|
|---|
| 221 |
|
|---|
| 222 | First sequence contains 1 additional elements.
|
|---|
| 223 | First extra element 7:
|
|---|
| 224 | <NullableJSONModel: NullableJSONModel object (17)>
|
|---|
| 225 |
|
|---|
| 226 | Diff is 804 characters long. Set self.maxDiff to None to see it.
|
|---|
| 227 |
|
|---|
| 228 | ======================================================================
|
|---|
| 229 | FAIL: test_obj_subquery_lookup (model_fields.test_jsonfield.TestQuerying)
|
|---|
| 230 | ----------------------------------------------------------------------
|
|---|
| 231 | Traceback (most recent call last):
|
|---|
| 232 | File "/django/tests/model_fields/test_jsonfield.py", line 796, in test_obj_subquery_lookup
|
|---|
| 233 | self.assertCountEqual(qs, [self.objs[3], self.objs[4]])
|
|---|
| 234 | AssertionError: Element counts were not equal:
|
|---|
| 235 | First has 0, Second has 1: <NullableJSONModel: NullableJSONModel object (6)>
|
|---|
| 236 | First has 0, Second has 1: <NullableJSONModel: NullableJSONModel object (7)>
|
|---|
| 237 |
|
|---|
| 238 | ======================================================================
|
|---|
| 239 | FAIL: test_ordering_grouping_by_key_transform (model_fields.test_jsonfield.TestQuerying)
|
|---|
| 240 | ----------------------------------------------------------------------
|
|---|
| 241 | Traceback (most recent call last):
|
|---|
| 242 | File "/django/tests/model_fields/test_jsonfield.py", line 426, in test_ordering_grouping_by_key_transform
|
|---|
| 243 | self.assertQuerySetEqual(
|
|---|
| 244 | File "/django/django/test/testcases.py", line 1168, in assertQuerySetEqual
|
|---|
| 245 | return self.assertEqual(list(items), values, msg=msg)
|
|---|
| 246 | AssertionError: Lists differ: [('', 0), ('"g"', 1)] != [('', 0), ('g', 1)]
|
|---|
| 247 |
|
|---|
| 248 | First differing element 1:
|
|---|
| 249 | ('"g"', 1)
|
|---|
| 250 | ('g', 1)
|
|---|
| 251 |
|
|---|
| 252 | - [('', 0), ('"g"', 1)]
|
|---|
| 253 | ? - -
|
|---|
| 254 |
|
|---|
| 255 | + [('', 0), ('g', 1)]
|
|---|
| 256 |
|
|---|
| 257 | ======================================================================
|
|---|
| 258 | FAIL: test_shallow_obj_lookup (model_fields.test_jsonfield.TestQuerying)
|
|---|
| 259 | ----------------------------------------------------------------------
|
|---|
| 260 | Traceback (most recent call last):
|
|---|
| 261 | File "/django/tests/model_fields/test_jsonfield.py", line 785, in test_shallow_obj_lookup
|
|---|
| 262 | self.assertCountEqual(
|
|---|
| 263 | AssertionError: Element counts were not equal:
|
|---|
| 264 | First has 0, Second has 1: <NullableJSONModel: NullableJSONModel object (6)>
|
|---|
| 265 | First has 0, Second has 1: <NullableJSONModel: NullableJSONModel object (7)>
|
|---|
| 266 |
|
|---|
| 267 | ----------------------------------------------------------------------
|
|---|
| 268 | Ran 94 tests in 1.285s
|
|---|
| 269 |
|
|---|
| 270 | FAILED (failures=22, errors=1, skipped=12)
|
|---|
| 271 | Destroying test database for alias 'default'...
|
|---|
| 272 | Destroying test user...
|
|---|
| 273 | Destroying test database tables...
|
|---|