Skip to content

Instantly share code, notes, and snippets.

@hanleybrand
Created May 28, 2014 16:12
Show Gist options
  • Save hanleybrand/2174f0499a619f2def20 to your computer and use it in GitHub Desktop.
Save hanleybrand/2174f0499a619f2def20 to your computer and use it in GitHub Desktop.
updated_dj16_test_results
$ ./test.sh
Scratch directory for this test session is /var/folders/b2/qyttf5ps2ysdcd7jwhj5s1fr0000gn/T/tmpqtkPbT
TESTING =========== 1 =================== 2 ================== 3
Creating test database for alias 'default' ('test_test_test_mdid')...
Syncing...
Creating tables ...
Creating table django_content_type
Creating table auth_permission
Creating table auth_group_permissions
Creating table auth_group
Creating table auth_user_groups
Creating table auth_user_user_permissions
Creating table auth_user
Creating table django_session
Creating table django_site
Creating table django_flatpage_sites
Creating table django_flatpage
Creating table django_admin_log
Creating table django_comments
Creating table django_comment_flags
Creating table django_redirect
Creating table data_collection_children
Creating table data_collection
Creating table data_collectionitem
Creating table data_record
Creating table data_metadatastandard
Creating table data_vocabulary
Creating table data_vocabularyterm
Creating table data_field_equivalent
Creating table data_field
Creating table data_fieldset
Creating table data_fieldsetfield
Creating table data_fieldvalue
Creating table data_displayfieldvalue
Creating table migration_objecthistory
Creating table util_ownedwrapper
Creating table access_accesscontrol
Creating table access_extendedgroup
Creating table access_subnet
Creating table access_attribute
Creating table access_attributevalue
Creating table solr_solrindexupdates
Creating table storage_storage
Creating table storage_media
Creating table storage_trustedsubnet
Creating table storage_proxyurl
Creating table presentation_presentation
Creating table presentation_presentationitem
Creating table presentation_presentationiteminfo
Creating table statistics_activity
Creating table statistics_accumulatedactivity
Creating table federatedsearch_hitcount
Creating table tagging_tag
Creating table tagging_taggeditem
Creating table workers_jobinfo
Creating table userprofile_preference
Creating table userprofile_userprofile_preferences
Creating table userprofile_userprofile
Creating table google_analytics_analytics
Creating table impersonate_impersonation_users
Creating table impersonate_impersonation_groups
Creating table impersonate_impersonation
Creating table south_migrationhistory
Creating auth fixtures
Creating sites fixtures
Creating flatpages fixtures
Creating data fixtures
Installing custom SQL ...
Installing indexes ...
Migrating...
Running migrations for django_extensions:
- Migrating forwards to 0001_empty.
> django_extensions:0001_empty
DEBUG:south:south execute "SET FOREIGN_KEY_CHECKS=1;" with params "[]"
DEBUG:south:south execute "SET FOREIGN_KEY_CHECKS=1;" with params "[]"
- Loading initial data for django_extensions.
Installed 0 object(s) from 0 fixture(s)
Synced:
> django.contrib.contenttypes
> django.contrib.auth
> django.contrib.sessions
> django.contrib.sites
> django.contrib.flatpages
> grappelli
> django.contrib.admin
> django.contrib.humanize
> django.contrib.comments
> django.contrib.redirects
> django.contrib.staticfiles
> django.contrib.messages
> rooibos.data
> rooibos.migration
> rooibos.util
> rooibos.access
> rooibos.solr
> rooibos.storage
> rooibos.legacy
> rooibos.ui
> rooibos.viewers
> rooibos.help
> rooibos.presentation
> rooibos.statistics
> rooibos.federatedsearch
> rooibos.federatedsearch.artstor
> rooibos.federatedsearch.flickr
> rooibos.converters
> rooibos.contrib.tagging
> rooibos.workers
> rooibos.userprofile
> rooibos.mediaviewer
> rooibos.megazine
> rooibos.groupmanager
> rooibos.pdfviewer
> rooibos.pptexport
> rooibos.audiotextsync
> rooibos.contrib.google_analytics
> rooibos.contrib.pagination
> rooibos.contrib.impersonate
> compressor
> rooibos.contrib.south
> debug_toolbar
Migrated:
- django_extensions
Creating auth fixtures
Creating sites fixtures
Creating flatpages fixtures
Creating data fixtures
Installed 0 object(s) from 0 fixture(s)
test_accumulator (rooibos.statistics.tests.AccumulatedActivityTest) ... ok
test_accumulator_dates (rooibos.statistics.tests.AccumulatedActivityTest) ... ok
test_accumulator_history (rooibos.statistics.tests.AccumulatedActivityTest) ... ok
test_activity_anonymous_user (rooibos.statistics.tests.AccumulatedActivityTest) ... ok
test_activity_data_dict (rooibos.statistics.tests.AccumulatedActivityTest) ... ok
test_store_request_in_activity (rooibos.statistics.tests.AccumulatedActivityTest) ... ok
testDuplicateKey (rooibos.userprofile.tests.UserProfileTest) ... ok
testAccessControl (rooibos.access.tests.AccessTestCase) ... ok
testAnonymousUserAccessControl (rooibos.access.tests.AccessTestCase) ... ok
testCheckAccess (rooibos.access.tests.AccessTestCase) ... ok
testFilterByAccessUserGroup (rooibos.access.tests.AccessTestCase) ... ok
testFilterByAccessUserOnly (rooibos.access.tests.AccessTestCase) ... ok
testGetEffectivePermissions (rooibos.access.tests.AccessTestCase) ... ok
testNoRestrictionsSpecified (rooibos.access.tests.AccessTestCase) ... ok
testRestrictionPrecendences (rooibos.access.tests.AccessTestCase) ... ok
testRestrictions (rooibos.access.tests.AccessTestCase) ... ok
testAttributeBased (rooibos.access.tests.ExtendedGroupTestCase) ... ok
testExtraGroups (rooibos.access.tests.ExtendedGroupTestCase) ... ok
testAnalyze (rooibos.data.tests.CsvImportTestCase) ... ok
testBOM (rooibos.data.tests.CsvImportTestCase)
Make sure the import can handle the BOM at the beginning of some UTF-8 files ... ok
testFindDuplicateIdentifiers (rooibos.data.tests.CsvImportTestCase) ... ok
testImport (rooibos.data.tests.CsvImportTestCase) ... ok
testImportSimple (rooibos.data.tests.CsvImportTestCase) ... WARNING:pika.adapters.base_connection:Unknown state on disconnect: 0
WARNING:pika.adapters.base_connection:Unknown state on disconnect: 0
ok
testKeepSystemFieldValues (rooibos.data.tests.CsvImportTestCase) ... WARNING:pika.adapters.base_connection:Unknown state on disconnect: 0
WARNING:pika.adapters.base_connection:Unknown state on disconnect: 0
ok
testNoBOM (rooibos.data.tests.CsvImportTestCase)
Make sure the import can handle the lack of BOM at the beginning of some UTF-8 files ... ok
testNoIdentifierException (rooibos.data.tests.CsvImportTestCase) ... ok
testOwnedRecordImport (rooibos.data.tests.CsvImportTestCase) ... WARNING:pika.adapters.base_connection:Unknown state on disconnect: 0
WARNING:pika.adapters.base_connection:Unknown state on disconnect: 0
ok
testRecordMultiRowImport (rooibos.data.tests.CsvImportTestCase) ... WARNING:pika.adapters.base_connection:Unknown state on disconnect: 0
WARNING:pika.adapters.base_connection:Unknown state on disconnect: 0
ok
testRecordMultiRowImport2 (rooibos.data.tests.CsvImportTestCase) ... WARNING:pika.adapters.base_connection:Unknown state on disconnect: 0
WARNING:pika.adapters.base_connection:Unknown state on disconnect: 0
ok
testSkipAdds (rooibos.data.tests.CsvImportTestCase) ... WARNING:pika.adapters.base_connection:Unknown state on disconnect: 0
WARNING:pika.adapters.base_connection:Unknown state on disconnect: 0
ok
testSkipUpdates (rooibos.data.tests.CsvImportTestCase) ... WARNING:pika.adapters.base_connection:Unknown state on disconnect: 0
WARNING:pika.adapters.base_connection:Unknown state on disconnect: 0
ok
testSplitValuesImport (rooibos.data.tests.CsvImportTestCase) ... WARNING:pika.adapters.base_connection:Unknown state on disconnect: 0
WARNING:pika.adapters.base_connection:Unknown state on disconnect: 0
ok
testTestOnly (rooibos.data.tests.CsvImportTestCase) ... WARNING:pika.adapters.base_connection:Unknown state on disconnect: 0
WARNING:pika.adapters.base_connection:Unknown state on disconnect: 0
ok
testFieldValueBasicContext (rooibos.data.tests.FieldValueTestCase) ... ERROR
testPresentationContext (rooibos.data.tests.FieldValueTestCase) ... ok
testCircularSubGroups (rooibos.data.tests.GroupTestCase) ... ok
testGetTitle (rooibos.data.tests.GroupTestCase) ... ok
testSubGroupRecords (rooibos.data.tests.GroupTestCase) ... ok
testSubGroups (rooibos.data.tests.GroupTestCase) ... ok
testIndividualEditableRecord (rooibos.data.tests.RecordAccessTestCase) ... ok
testIndividualRecord (rooibos.data.tests.RecordAccessTestCase) ... ok
testPersonalRecordInCollectionNotShared (rooibos.data.tests.RecordAccessTestCase) ... ok
testPersonalRecordInCollectionShared (rooibos.data.tests.RecordAccessTestCase) ... ok
testPersonalRecordNotInCollection (rooibos.data.tests.RecordAccessTestCase) ... ok
testRegularRecordInCollectionHidden (rooibos.data.tests.RecordAccessTestCase) ... ok
testRegularRecordInCollectionNotHidden (rooibos.data.tests.RecordAccessTestCase) ... ok
testRegularRecordNotInCollection (rooibos.data.tests.RecordAccessTestCase) ... ok
testDefaultRecordName (rooibos.data.tests.RecordNameTestCase) ... ok
testRecordNameFromEquivIdentifier (rooibos.data.tests.RecordNameTestCase) ... ok
testRecordNameFromIdentifier (rooibos.data.tests.RecordNameTestCase) ... ok
testSizeAccess (rooibos.presentation.tests.PackagePresentationTestCase) ... ok
testAnalyzeCollection (rooibos.storage.tests.AnalyzeTestCase) ... ok
testAnalyzeMedia (rooibos.storage.tests.AnalyzeTestCase) ... ok
test_connect_files (rooibos.storage.tests.AutoConnectMediaTestCase) ... ok
Creating auth fixtures
Creating sites fixtures
Creating flatpages fixtures
Creating data fixtures
test_get_files (rooibos.storage.tests.AutoConnectMediaTestCase) ... ok
Creating auth fixtures
Creating sites fixtures
Creating flatpages fixtures
Creating data fixtures
test_get_files_in_subdirectories (rooibos.storage.tests.AutoConnectMediaTestCase) ... ok
Creating auth fixtures
Creating sites fixtures
Creating flatpages fixtures
Creating data fixtures
test_direct_access (rooibos.storage.tests.GetMediaForRecordTestCase) ... ok
test_hidden_presentation_access (rooibos.storage.tests.GetMediaForRecordTestCase) ... ok
test_password_access (rooibos.storage.tests.GetMediaForRecordTestCase) ... ok
test_presentation_must_contain_record (rooibos.storage.tests.GetMediaForRecordTestCase) ... ok
test_simple_presentation_access (rooibos.storage.tests.GetMediaForRecordTestCase) ... ok
test_standalone_record_access (rooibos.storage.tests.GetMediaForRecordTestCase) ... ok
test_compare (rooibos.storage.tests.ImageCompareTest) ... ok
testDeliveryUrl (rooibos.storage.tests.LocalFileSystemStorageSystemTestCase) ... ok
Creating auth fixtures
Creating sites fixtures
Creating flatpages fixtures
Creating data fixtures
test_access_through_presentation (rooibos.storage.tests.LocalFileSystemStorageSystemTestCase) ... ok
Creating auth fixtures
Creating sites fixtures
Creating flatpages fixtures
Creating data fixtures
test_crop_to_square (rooibos.storage.tests.LocalFileSystemStorageSystemTestCase) ... ok
Creating auth fixtures
Creating sites fixtures
Creating flatpages fixtures
Creating data fixtures
test_derivative_permissions (rooibos.storage.tests.LocalFileSystemStorageSystemTestCase) ... ok
Creating auth fixtures
Creating sites fixtures
Creating flatpages fixtures
Creating data fixtures
test_save_and_retrieve_file (rooibos.storage.tests.LocalFileSystemStorageSystemTestCase) ... ok
Creating auth fixtures
Creating sites fixtures
Creating flatpages fixtures
Creating data fixtures
test_save_over_existing_file (rooibos.storage.tests.LocalFileSystemStorageSystemTestCase) ... ok
Creating auth fixtures
Creating sites fixtures
Creating flatpages fixtures
Creating data fixtures
test_thumbnail (rooibos.storage.tests.LocalFileSystemStorageSystemTestCase) ... ok
Creating auth fixtures
Creating sites fixtures
Creating flatpages fixtures
Creating data fixtures
testDefaultMediaName (rooibos.storage.tests.MediaNameTestCase) ... ok
Creating auth fixtures
Creating sites fixtures
Creating flatpages fixtures
Creating data fixtures
testMediaNameFromSave (rooibos.storage.tests.MediaNameTestCase) ... ok
Creating auth fixtures
Creating sites fixtures
Creating flatpages fixtures
Creating data fixtures
testMediaNameFromUrl (rooibos.storage.tests.MediaNameTestCase) ... ok
Creating auth fixtures
Creating sites fixtures
Creating flatpages fixtures
Creating data fixtures
test_retrieval (rooibos.storage.tests.OnlineStorageSystemTestCase) ... ok
Creating auth fixtures
Creating sites fixtures
Creating flatpages fixtures
Creating data fixtures
test_save_and_retrieve_file (rooibos.storage.tests.ProtectedContentDownloadTestCase) ... ok
Creating auth fixtures
Creating sites fixtures
Creating flatpages fixtures
Creating data fixtures
test_duplicate_proxy_url (rooibos.storage.tests.ProxyUrlTest) ... ok
Creating auth fixtures
Creating sites fixtures
Creating flatpages fixtures
Creating data fixtures
test_proxy_url (rooibos.storage.tests.ProxyUrlTest) ... ERROR:root:error running query
Traceback (most recent call last):
File "~~~~~~~~~~~~~~~~~~~>mdid_root/rooibos/access/middleware.py", line 24, in __init__
cursor.execute(s)
File "////////python/lib/python2.7/site-packages/django/db/backends/util.py", line 53, in execute
return self.cursor.execute(sql, params)
File "////////python/lib/python2.7/site-packages/django/db/utils.py", line 99, in __exit__
six.reraise(dj_exc_type, dj_exc_value, traceback)
File "////////python/lib/python2.7/site-packages/django/db/backends/util.py", line 51, in execute
return self.cursor.execute(sql)
File "////////python/lib/python2.7/site-packages/django/db/backends/mysql/base.py", line 124, in execute
return self.cursor.execute(query, args)
File "////////python/lib/python2.7/site-packages/MySQL_python-1.2.4b4-py2.7-macosx-10.9-x86_64.egg/MySQLdb/cursors.py", line 202, in execute
self.errorhandler(self, exc, value)
File "////////python/lib/python2.7/site-packages/MySQL_python-1.2.4b4-py2.7-macosx-10.9-x86_64.egg/MySQLdb/connections.py", line 36, in defaulterrorhandler
raise errorclass, errorvalue
OperationalError: (1061, "Duplicate key name 'access_accesscontrol_846f0221'")
ok
Creating auth fixtures
Creating sites fixtures
Creating flatpages fixtures
Creating data fixtures
test_pseudostreaming (rooibos.storage.tests.PseudoStreamingStorageSystemTestCase) ... ERROR
Creating auth fixtures
Creating sites fixtures
Creating flatpages fixtures
Creating data fixtures
testBasicCache (rooibos.util.tests.CacheTest) ... ok
testGetCachedValue (rooibos.util.tests.CacheTest) ... ok
testLongUniqueSlugs (rooibos.util.tests.UniqueSlugTestCase) ... ok
testUniqueSlugs (rooibos.util.tests.UniqueSlugTestCase) ... ok
testUniqueWithSomethingSlugs (rooibos.util.tests.UniqueSlugTestCase) ... ok
======================================================================
ERROR: testFieldValueBasicContext (rooibos.data.tests.FieldValueTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "~~~~~~~~~~~~~~~~~~~>mdid_root/rooibos/data/tests.py", line 50, in testFieldValueBasicContext
self.assertEqual(True, datetime.now() - record.created < timedelta(0, 120))
TypeError: can't subtract offset-naive and offset-aware datetimes
======================================================================
ERROR: test_pseudostreaming (rooibos.storage.tests.PseudoStreamingStorageSystemTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "~~~~~~~~~~~~~~~~~~~>mdid_root/rooibos/storage/tests.py", line 371, in test_pseudostreaming
self.media.save_file('test.txt', content)
File "~~~~~~~~~~~~~~~~~~~>mdid_root/rooibos/storage/models.py", line 183, in save_file
raise IOError("Media file could not be stored")
IOError: Media file could not be stored
----------------------------------------------------------------------
Ran 83 tests in 23.198s
FAILED (errors=2)
Destroying test database for alias 'default' ('test_test_test_mdid')...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment