Skip to content

Instantly share code, notes, and snippets.

@halfnibble
Created August 6, 2015 08:19
Show Gist options
  • Save halfnibble/5067817b3a235a1a6ac2 to your computer and use it in GitHub Desktop.
Save halfnibble/5067817b3a235a1a6ac2 to your computer and use it in GitHub Desktop.
The output of my djagno-cleanerversion tests.
Creating test database for alias 'default'...
Got an error creating the test database: (1007, "Can't create database 'test_pna_demo'; database exists")
Type 'yes' if you would like to try deleting the test database 'test_pna_demo', or 'no' to cancel: yes
Destroying old test database 'default'...
s..........F......F..........F...F.........FFF.Fss..sF.F...FFF.FFF...FsFFF.FF....ss..FF....FF....F.FFFFFF..F..ss
======================================================================
FAIL: test_on_delete (versions_tests.tests.test_models.DeletionHandlerTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/joshua/.envs/pna/local/lib/python2.7/site-packages/versions_tests/tests/test_models.py", line 244, in test_on_delete
self.assertEqual(2, Award.objects.as_of(t1).get(pk=self.a1.pk).players.count())
AssertionError: 2 != 0
======================================================================
FAIL: test_deleting_non_current_version (versions_tests.tests.test_models.DeletionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/joshua/.envs/pna/local/lib/python2.7/site-packages/versions_tests/tests/test_models.py", line 156, in test_deleting_non_current_version
self.assertRaises(DeletionOfNonCurrentVersionError, previous.delete)
AssertionError: DeletionOfNonCurrentVersionError not raised
======================================================================
FAIL: test_accessibility_of_versions_and_non_versionables_via_plain_fk (versions_tests.tests.test_models.IntegrationNonVersionableModelsTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/joshua/.envs/pna/local/lib/python2.7/site-packages/versions_tests/tests/test_models.py", line 2184, in test_accessibility_of_versions_and_non_versionables_via_plain_fk
self.assertEqual('Bordeaux', jacques_t1.glass_content.name)
AssertionError: 'Bordeaux' != u'Barolo'
======================================================================
FAIL: test_t2_relations (versions_tests.tests.test_models.M2MDirectAssignmentTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/joshua/.envs/pna/local/lib/python2.7/site-packages/versions_tests/tests/test_models.py", line 1880, in test_t2_relations
self.assertEqual(2, observer.subjects.all().count())
AssertionError: 2 != 0
======================================================================
FAIL: test_filtering_two_jumps_reverse_with_version_at_t2 (versions_tests.tests.test_models.ManyToManyFilteringTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/joshua/.envs/pna/local/lib/python2.7/site-packages/versions_tests/tests/test_models.py", line 1820, in test_filtering_two_jumps_reverse_with_version_at_t2
self.assertEqual(2, count)
AssertionError: 2 != 1
======================================================================
FAIL: test_filtering_two_jumps_with_version_at_t1 (versions_tests.tests.test_models.ManyToManyFilteringTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/joshua/.envs/pna/local/lib/python2.7/site-packages/versions_tests/tests/test_models.py", line 1691, in test_filtering_two_jumps_with_version_at_t1
self.assertEqual(should_be_c1.name, 'c1.v1')
AssertionError: u'c1.v2' != 'c1.v1'
======================================================================
FAIL: test_filtering_two_jumps_with_version_at_t2 (versions_tests.tests.test_models.ManyToManyFilteringTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/joshua/.envs/pna/local/lib/python2.7/site-packages/versions_tests/tests/test_models.py", line 1757, in test_filtering_two_jumps_with_version_at_t2
self.assertIsNotNone(should_be_c1)
AssertionError: unexpectedly None
======================================================================
FAIL: test_inexistent_relations_at_t0 (versions_tests.tests.test_models.ManyToManyFilteringTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/joshua/.envs/pna/local/lib/python2.7/site-packages/versions_tests/tests/test_models.py", line 1580, in test_inexistent_relations_at_t0
self.assertEqual([], list(c1_at_t0.c2s.all()))
AssertionError: Lists differ: [] != [<C2: <C2 object: c2.v2 {valid...
Second list contains 1 additional elements.
First extra element 0:
<C2 object: c2.v2 {valid: [2015-08-06T08:14:09+00:00 | None], created: 2015-08-06T08:14:09+00:00}>
- []
+ [<C2: <C2 object: c2.v2 {valid: [2015-08-06T08:14:09+00:00 | None], created: 2015-08-06T08:14:09+00:00}>>]
======================================================================
FAIL: test_annotations_and_aggregations (versions_tests.tests.test_models.MultiM2MTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/joshua/.envs/pna/local/lib/python2.7/site-packages/versions_tests/tests/test_models.py", line 1324, in test_annotations_and_aggregations
Professor.objects.as_of(self.t1).get(name='Mr. Biggs').students.count())
AssertionError: Tuples differ: (2, 2) != (1, 1)
First differing element 0:
2
1
- (2, 2)
+ (1, 1)
======================================================================
FAIL: test_direct_assignment_of_relations (versions_tests.tests.test_models.MultiM2MTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/joshua/.envs/pna/local/lib/python2.7/site-packages/versions_tests/tests/test_models.py", line 1302, in test_direct_assignment_of_relations
self.assertSetEqual(set(list(benny1.professors.all())), set([first_professor]))
AssertionError: Items in the second set but not the first:
<Professor: <Professor object: Mr. Evans {valid: [2015-08-06T08:14:12+00:00 | None], created: 2015-08-06T08:14:12+00:00}>>
======================================================================
FAIL: test_t0 (versions_tests.tests.test_models.MultiM2MTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/joshua/.envs/pna/local/lib/python2.7/site-packages/versions_tests/tests/test_models.py", line 1138, in test_t0
self.assertEqual(len(professors), 2)
AssertionError: 3 != 2
======================================================================
FAIL: test_t1 (versions_tests.tests.test_models.MultiM2MTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/joshua/.envs/pna/local/lib/python2.7/site-packages/versions_tests/tests/test_models.py", line 1180, in test_t1
self.assertEqual(mr_evans_t1.students.count(), 0)
AssertionError: 2 != 0
======================================================================
FAIL: test_t2 (versions_tests.tests.test_models.MultiM2MTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/joshua/.envs/pna/local/lib/python2.7/site-packages/versions_tests/tests/test_models.py", line 1192, in test_t2
self.assertEqual(len(evans_students), 1)
AssertionError: 2 != 1
======================================================================
FAIL: test_filtering_on_the_other_side_of_relation (versions_tests.tests.test_models.MultiM2MToSameTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/joshua/.envs/pna/local/lib/python2.7/site-packages/versions_tests/tests/test_models.py", line 1468, in test_filtering_on_the_other_side_of_relation
self.assertEqual(1, language_pupils_count)
AssertionError: 1 != 0
======================================================================
FAIL: test_t0 (versions_tests.tests.test_models.MultiM2MToSameTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/joshua/.envs/pna/local/lib/python2.7/site-packages/versions_tests/tests/test_models.py", line 1479, in test_t0
self.assertEqual(billy_t0.language_teachers.count(), 0)
AssertionError: 1 != 0
======================================================================
FAIL: test_t1 (versions_tests.tests.test_models.MultiM2MToSameTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/joshua/.envs/pna/local/lib/python2.7/site-packages/versions_tests/tests/test_models.py", line 1484, in test_t1
self.assertEqual(billy_t1.language_teachers.first().name, 'Ms. Sue')
AssertionError: u'Ms. Klishina' != 'Ms. Sue'
======================================================================
FAIL: test_filtering_on_the_other_side_of_the_relation (versions_tests.tests.test_models.OneToManyFilteringTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/joshua/.envs/pna/local/lib/python2.7/site-packages/versions_tests/tests/test_models.py", line 968, in test_filtering_on_the_other_side_of_the_relation
self.assertEqual(1, Player.objects.as_of(self.t1).filter(name='p1.v1').all().count())
AssertionError: 1 != 0
======================================================================
FAIL: test_simple_filter_using_q_objects (versions_tests.tests.test_models.OneToManyFilteringTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/joshua/.envs/pna/local/lib/python2.7/site-packages/versions_tests/tests/test_models.py", line 1012, in test_simple_filter_using_q_objects
self.assertListEqual(sorted(t1_players), sorted(['p1.v1', 'p2.v1']))
AssertionError: Lists differ: [u'p1.v2', u'p2.v2'] != ['p1.v1', 'p2.v1']
First differing element 0:
p1.v2
p1.v1
- [u'p1.v2', u'p2.v2']
? - ^ - ^
+ ['p1.v1', 'p2.v1']
? ^ ^
======================================================================
FAIL: test_adding_one_more_player_to_the_team (versions_tests.tests.test_models.OneToManyTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/joshua/.envs/pna/local/lib/python2.7/site-packages/versions_tests/tests/test_models.py", line 687, in test_adding_one_more_player_to_the_team
self.assertEqual(2, team_at_t1.player_set.all().count())
AssertionError: 2 != 3
======================================================================
FAIL: test_creating_new_version_of_the_player (versions_tests.tests.test_models.OneToManyTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/joshua/.envs/pna/local/lib/python2.7/site-packages/versions_tests/tests/test_models.py", line 661, in test_creating_new_version_of_the_player
self.assertNotEqual(u'p1.v2', six.u(str(player.name)))
AssertionError: u'p1.v2' == u'p1.v2'
======================================================================
FAIL: test_removing_and_then_adding_again_same_player (versions_tests.tests.test_models.OneToManyTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/joshua/.envs/pna/local/lib/python2.7/site-packages/versions_tests/tests/test_models.py", line 718, in test_removing_and_then_adding_again_same_player
self.assertEqual(1, team_at_t2.player_set.all().count())
AssertionError: 1 != 2
======================================================================
FAIL: test_removing_and_then_adding_again_same_player_on_related_object (versions_tests.tests.test_models.OneToManyTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/joshua/.envs/pna/local/lib/python2.7/site-packages/versions_tests/tests/test_models.py", line 760, in test_removing_and_then_adding_again_same_player_on_related_object
self.assertEqual(1, team_at_t2.player_set.all().count())
AssertionError: 1 != 2
======================================================================
FAIL: test_t2_relations_for_cloned_referenced_object (versions_tests.tests.test_models.ReverseForeignKeyDirectAssignmentTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/joshua/.envs/pna/local/lib/python2.7/site-packages/versions_tests/tests/test_models.py", line 1921, in test_t2_relations_for_cloned_referenced_object
self.assertEqual(2, city.team_set.all().count())
AssertionError: 2 != 0
======================================================================
FAIL: test_t2_relations_for_cloned_referring_object (versions_tests.tests.test_models.ReverseForeignKeyDirectAssignmentTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/joshua/.envs/pna/local/lib/python2.7/site-packages/versions_tests/tests/test_models.py", line 1933, in test_t2_relations_for_cloned_referring_object
self.assertEqual(2, city.team_set.all().count())
AssertionError: 2 != 0
======================================================================
FAIL: test_creating_new_version_of_the_subdir (versions_tests.tests.test_models.SelfOneToManyTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/joshua/.envs/pna/local/lib/python2.7/site-packages/versions_tests/tests/test_models.py", line 827, in test_creating_new_version_of_the_subdir
self.assertNotEqual('subdir1.v2', subdir.name)
AssertionError: 'subdir1.v2' == u'subdir1.v2'
======================================================================
FAIL: test_removing_and_then_adding_again_same_subdir (versions_tests.tests.test_models.SelfOneToManyTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/joshua/.envs/pna/local/lib/python2.7/site-packages/versions_tests/tests/test_models.py", line 890, in test_removing_and_then_adding_again_same_subdir
self.assertEqual(1, parentdir_at_t2.directory_set.all().count())
AssertionError: 1 != 2
======================================================================
FAIL: test_as_of_parameter (versions_tests.tests.test_models.VersionNavigationAsOfTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/joshua/.envs/pna/local/lib/python2.7/site-packages/versions_tests/tests/test_models.py", line 485, in test_as_of_parameter
self.assertFalse(city1_t2.is_current)
AssertionError: True is not false
======================================================================
FAIL: test_getting_next_version (versions_tests.tests.test_models.VersionNavigationTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/joshua/.envs/pna/local/lib/python2.7/site-packages/versions_tests/tests/test_models.py", line 400, in test_getting_next_version
self.assertEqual('v1', v1.name)
AssertionError: 'v1' != u'v3'
======================================================================
FAIL: test_getting_nonexistent_next_version (versions_tests.tests.test_models.VersionNavigationTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/joshua/.envs/pna/local/lib/python2.7/site-packages/versions_tests/tests/test_models.py", line 439, in test_getting_nonexistent_next_version
self.assertRaises(ObjectDoesNotExist, lambda: B.objects.next_version(v3))
AssertionError: ObjectDoesNotExist not raised
======================================================================
FAIL: test_getting_previous_version (versions_tests.tests.test_models.VersionNavigationTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/joshua/.envs/pna/local/lib/python2.7/site-packages/versions_tests/tests/test_models.py", line 422, in test_getting_previous_version
self.assertEqual('v2', should_be_v2.name)
AssertionError: 'v2' != u'v3'
======================================================================
FAIL: test_over_time (versions_tests.tests.test_models.VersionRestoreTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/joshua/.envs/pna/local/lib/python2.7/site-packages/versions_tests/tests/test_models.py", line 2421, in test_over_time
self.assertIsNone(Player.objects.as_of(t3).filter(name='p1.v2').first())
AssertionError: <Player: <Player object: p1.v2 {valid: [2015-08-06T08:14:24+00:00 | None], created: 2015-08-06T08:14:24+00:00}>> is not None
======================================================================
FAIL: test_restore_latest_version (versions_tests.tests.test_models.VersionRestoreTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/joshua/.envs/pna/local/lib/python2.7/site-packages/versions_tests/tests/test_models.py", line 2333, in test_restore_latest_version
self.assertEqual(deleted_at, previous.version_end_date)
AssertionError: datetime.datetime(2015, 8, 6, 8, 14, 24, 107623, tzinfo=<UTC>) != datetime.datetime(2015, 8, 6, 8, 14, 24, tzinfo=<UTC>)
======================================================================
FAIL: test_restore_previous_version (versions_tests.tests.test_models.VersionRestoreTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/joshua/.envs/pna/local/lib/python2.7/site-packages/versions_tests/tests/test_models.py", line 2360, in test_restore_previous_version
self.assertSetEqual(set(previous.awards.all()), set(self.awards.values()))
AssertionError: Items in the second set but not the first:
<Award: Award object>
<Award: Award object>
======================================================================
FAIL: test_queryset_using_as_of (versions_tests.tests.test_models.VersionedQuerySetTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/joshua/.envs/pna/local/lib/python2.7/site-packages/versions_tests/tests/test_models.py", line 361, in test_queryset_using_as_of
self.assertEqual('v1', o.name)
AssertionError: 'v1' != u'v3'
----------------------------------------------------------------------
Ran 112 tests in 28.793s
FAILED (failures=34, skipped=9)
Destroying test database for alias 'default'...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment