Created
July 16, 2017 14:38
-
-
Save takluyver/2682c5333e10934218c7e6baa04f2eda to your computer and use it in GitHub Desktop.
rapid-router py3 test failures
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
====================================================================== | |
ERROR: test_multiple_levels (game.tests.test_scoreboard.ScoreboardCsvTestCase) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/takluyver/Code/rapid-router/game/tests/test_scoreboard.py", line 203, in test_multiple_levels | |
actual_header, actual_rows = self.actual_data(response.content) | |
File "/home/takluyver/Code/rapid-router/game/tests/test_scoreboard.py", line 270, in actual_data | |
split = content.split("\r\n") | |
TypeError: a bytes-like object is required, not 'str' | |
====================================================================== | |
ERROR: test_single_level (game.tests.test_scoreboard.ScoreboardCsvTestCase) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/takluyver/Code/rapid-router/game/tests/test_scoreboard.py", line 216, in test_single_level | |
actual_header, actual_rows = self.actual_data(response.content) | |
File "/home/takluyver/Code/rapid-router/game/tests/test_scoreboard.py", line 270, in actual_data | |
split = content.split("\r\n") | |
TypeError: a bytes-like object is required, not 'str' | |
====================================================================== | |
FAIL: test_moderation_teachers_class (game.tests.test_level_moderation.LevelModerationTestCase) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/takluyver/Code/rapid-router/game/tests/test_level_moderation.py", line 62, in test_moderation_teachers_class | |
assert_that(response.content, equal_to('{"%s": "%s"}' % (student.id, student_name))) | |
AssertionError: | |
Expected: '{"16": "Student 2"}' | |
but: was <b'{"16": "Student 2"}'> | |
====================================================================== | |
FAIL: test_student_multiple_students_multiple_levels (game.tests.test_scoreboard.ScoreboardTestCase) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/takluyver/Code/rapid-router/game/tests/test_scoreboard.py", line 127, in test_student_multiple_students_multiple_levels | |
assert_that(headers, equal_to(['Class', 'Name', 'Total Score', 'Total Time', 'Progress', u'Level 1', u'Level 2'])) | |
AssertionError: | |
Expected: <['Class', 'Name', 'Total Score', 'Total Time', 'Progress', 'Level 1', 'Level 2']> | |
but: was <[<django.utils.functional.lazy.<locals>.__proxy__ object at 0x7fdfa2b6c860>, <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7fdfa2b6c898>, <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7fdfa2b6c8d0>, <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7fdfa2b6c940>, <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7fdfa2b6c828>, 'Level object', 'Level object']> | |
====================================================================== | |
FAIL: test_student_multiple_students_multiple_levels_cannot_see_classmates (game.tests.test_scoreboard.ScoreboardTestCase) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/takluyver/Code/rapid-router/game/tests/test_scoreboard.py", line 184, in test_student_multiple_students_multiple_levels_cannot_see_classmates | |
assert_that(headers, equal_to(['Class', 'Name', 'Total Score', 'Total Time', 'Progress', u'Level 1', u'Level 2'])) | |
AssertionError: | |
Expected: <['Class', 'Name', 'Total Score', 'Total Time', 'Progress', 'Level 1', 'Level 2']> | |
but: was <[<django.utils.functional.lazy.<locals>.__proxy__ object at 0x7fdfa2b6c860>, <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7fdfa2b6c898>, <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7fdfa2b6c8d0>, <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7fdfa2b6c940>, <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7fdfa2b6c828>, 'Level object', 'Level object']> | |
====================================================================== | |
FAIL: test_teacher_multiple_students_multiple_levels (game.tests.test_scoreboard.ScoreboardTestCase) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/takluyver/Code/rapid-router/game/tests/test_scoreboard.py", line 69, in test_teacher_multiple_students_multiple_levels | |
assert_that(headers, equal_to(['Class', 'Name', 'Total Score', 'Total Time', 'Progress', u'Level 1', u'Level 2'])) | |
AssertionError: | |
Expected: <['Class', 'Name', 'Total Score', 'Total Time', 'Progress', 'Level 1', 'Level 2']> | |
but: was <[<django.utils.functional.lazy.<locals>.__proxy__ object at 0x7fdfa2b6c860>, <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7fdfa2b6c898>, <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7fdfa2b6c8d0>, <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7fdfa2b6c940>, <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7fdfa2b6c828>, 'Level object', 'Level object']> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment