Changes between Initial Version and Version 1 of Ticket #31421


Ignore:
Timestamp:
Apr 2, 2020, 11:34:48 PM (5 years ago)
Author:
Nan Liu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31421 – Description

    initial v1  
     1python version is 3.7.3.
     2
    13i was basically doing "contributing tutorial", and after I have done following:
    24
     
    911
    1012python version is 3.7.3.
     13
     14error message after command + c:
     15
     16FAIL: test_db_table (schema.tests.SchemaTests)
     17----------------------------------------------------------------------
     18Traceback (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)
     37AssertionError: Tuples differ: ('schema_author', 'id') != ('schema_otherauthor', 'id')
     38
     39First differing element 0:
     40'schema_author'
     41'schema_otherauthor'
     42
     43- ('schema_author', 'id')
     44+ ('schema_otherauthor', 'id')
     45?          +++++
Back to Top