| 13 | |
| 14 | error message after command + c: |
| 15 | |
| 16 | FAIL: test_db_table (schema.tests.SchemaTests) |
| 17 | ---------------------------------------------------------------------- |
| 18 | Traceback (most recent call last): |
| 19 | File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor |
| 20 | yield |
| 21 | File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 615, in run |
| 22 | testMethod() |
| 23 | File "/Users/nanliu/github/django/django/test/utils.py", line 381, in inner |
| 24 | return func(*args, **kwargs) |
| 25 | File "/Users/nanliu/github/django/tests/schema/tests.py", line 2280, in test_db_table |
| 26 | self.assertForeignKeyExists(Book, "author_id", "schema_otherauthor") |
| 27 | File "/Users/nanliu/github/django/tests/schema/tests.py", line 201, in assertForeignKeyExists |
| 28 | self.assertEqual(constraint_fk, (expected_fk_table, field)) |
| 29 | File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 839, in assertEqual |
| 30 | assertion_func(first, second, msg=msg) |
| 31 | File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 1056, in assertTupleEqual |
| 32 | self.assertSequenceEqual(tuple1, tuple2, msg, seq_type=tuple) |
| 33 | File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 1027, in assertSequenceEqual |
| 34 | self.fail(msg) |
| 35 | File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 680, in fail |
| 36 | raise self.failureException(msg) |
| 37 | AssertionError: Tuples differ: ('schema_author', 'id') != ('schema_otherauthor', 'id') |
| 38 | |
| 39 | First differing element 0: |
| 40 | 'schema_author' |
| 41 | 'schema_otherauthor' |
| 42 | |
| 43 | - ('schema_author', 'id') |
| 44 | + ('schema_otherauthor', 'id') |
| 45 | ? +++++ |