Shoud I set up on runtests.py or add configuration to django?
I add more details :
I referenced https://docs.djangoproject.com/en/3.1/intro/contributing/
and
$ cd django/tests
$ ./runtests.py
Testing against Django installed in '/django/django' with up to 8 processes
Creating test database for alias 'default'...
Cloning test database for alias 'default'...
Cloning test database for alias 'default'...
Cloning test database for alias 'default'...
Cloning test database for alias 'default'...
Cloning test database for alias 'default'...
Cloning test database for alias 'default'...
Cloning test database for alias 'default'...
Cloning test database for alias 'default'...
Creating test database for alias 'other'...
Cloning test database for alias 'other'...
Cloning test database for alias 'other'...
Cloning test database for alias 'other'...
Cloning test database for alias 'other'...
Cloning test database for alias 'other'...
Cloning test database for alias 'other'...
Cloning test database for alias 'other'...
Cloning test database for alias 'other'...
System check identified no issues (14 silenced).
File "/django/test/runner.py", line 668 in run_suite File "/django/test/runner.py", line 727 in run_tests File "./runtests.py", line 325 in django_tests File "./runtests.py", line 593 in <module> .....................................................sssss..................... .............ssssssssssss...........................................ssssss..... ............................................................................... ............................................................................... ............................................................................... ............................................................................... ........................................................s.............sss..s.ss .....s..ss.sss.s......ss.s.........s......................s.................... .s...s....................s............s......s.s...s...
======================================================================
FAIL: test_file_get_accessed_time (file_storage.tests.CustomStorageTests)
File storage returns a Datetime object for the last accessed time of
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor
yield
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 628, in run
testMethod()
File "/django/tests/file_storage/tests.py", line 223, in test_file_get_accessed_time
self.assertEqual(atime, datetime.fromtimestamp(os.path.getatime(self.storage.path(f_name))))
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 852, in assertEqual
assertion_func(first, second, msg=msg)
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 845, in _baseAssertEqual
raise self.failureException(msg)
AssertionError: datetime.datetime(2021, 2, 6, 2, 10, 35, 322176) != datetime.datetime(2021, 2, 6, 2, 10, 35, 323020)
======================================================================
FAIL: test_file_get_accessed_time (file_storage.tests.DiscardingFalseContentStorageTests)
File storage returns a Datetime object for the last accessed time of
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor
yield
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 628, in run
testMethod()
File "/django/tests/file_storage/tests.py", line 223, in test_file_get_accessed_time
self.assertEqual(atime, datetime.fromtimestamp(os.path.getatime(self.storage.path(f_name))))
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 852, in assertEqual
assertion_func(first, second, msg=msg)
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 845, in _baseAssertEqual
raise self.failureException(msg)
AssertionError: datetime.datetime(2021, 2, 6, 2, 10, 35, 326147) != datetime.datetime(2021, 2, 6, 2, 10, 35, 326878)
======================================================================
FAIL: test_file_get_accessed_time (file_storage.tests.FileStorageTests)
File storage returns a Datetime object for the last accessed time of
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor
yield
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 628, in run
testMethod()
File "/django/tests/file_storage/tests.py", line 223, in test_file_get_accessed_time
self.assertEqual(atime, datetime.fromtimestamp(os.path.getatime(self.storage.path(f_name))))
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 852, in assertEqual
assertion_func(first, second, msg=msg)
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 845, in _baseAssertEqual
raise self.failureException(msg)
AssertionError: datetime.datetime(2021, 2, 6, 2, 10, 35, 507195) != datetime.datetime(2021, 2, 6, 2, 10, 35, 507936)
======================================================================
FAIL: test_file_get_accessed_time (file_storage.tests.OverwritingStorageTests)
File storage returns a Datetime object for the last accessed time of
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor
yield
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 628, in run
testMethod()
File "/django/tests/file_storage/tests.py", line 223, in test_file_get_accessed_time
self.assertEqual(atime, datetime.fromtimestamp(os.path.getatime(self.storage.path(f_name))))
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 852, in assertEqual
assertion_func(first, second, msg=msg)
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 845, in _baseAssertEqual
raise self.failureException(msg)
AssertionError: datetime.datetime(2021, 2, 6, 2, 10, 35, 698865) != datetime.datetime(2021, 2, 6, 2, 10, 35, 699950)
----------------------------------------------------------------------
Ran 14440 tests in 406.552s
FAILED (failures=4, skipped=1157, expected failures=4)
Destroying test database for alias 'default'...
Destroying test database for alias 'default'...
Destroying test database for alias 'default'...
Destroying test database for alias 'default'...
Destroying test database for alias 'default'...
Destroying test database for alias 'default'...
Destroying test database for alias 'default'...
Destroying test database for alias 'default'...
Destroying test database for alias 'default'...
Destroying test database for alias 'other'...
Destroying test database for alias 'other'...
Destroying test database for alias 'other'...
Destroying test database for alias 'other'...
Destroying test database for alias 'other'...
Destroying test database for alias 'other'...
Destroying test database for alias 'other'...
Destroying test database for alias 'other'...
Destroying test database for alias 'other'...
$
2021년 2월 4일 목요일 오후 11시 14분 35초 UTC+9에 Eric Ahn님이 작성:
Hello,$ cd django/tests$$ ./runtests.py......File "./runtests.py", line 325 in django_testsFile "./runtests.py", line 593 in <module>....................................................sss.s..................................sssssssssssss..................................................ssssss..................................................................................................................................................................................................................................................................................................................................................................................s.............sss..s.ss.....s..ss.sss.s......ss.s.........s......................s.....................s...s....................s............s......s.s...s...Why not proceed any further?Thanks
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/37906983-2e6e-4309-9a22-104afa2f2eafn%40googlegroups.com.
No comments:
Post a Comment