Skip to content

Commit e2d05a0

Browse files
author
David Noble
committed
Test fixes
1 parent 59b5e28 commit e2d05a0

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

tests/searchcommands_data/_expected_results/countmatches fieldname=word_count pattern=\\w+ text

Whitespace-only changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Results: OrderedDict([('total', '3803.0')])
2-
is_preview = False
2+
is_preview = False

tests/searchcommands_data/_expected_results/test_streaming_command_on_server.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,4 @@ Results: OrderedDict([('_serial', '96'), ('_time', '2013-10-04T08:11:33.000-07:0
9898
Results: OrderedDict([('_serial', '97'), ('_time', '2013-10-04T08:11:33.000-07:00'), ('text', 'RT @SastraRevolusi: Seandainya pria tahu, perempuan yang menanyakan status adalah perempuan yang tidak ingin kehilangan, bukan malah ingin \xe2\x80\xa6'), ('word_count', '18.0')])
9999
Results: OrderedDict([('_serial', '98'), ('_time', '2013-10-04T08:11:33.000-07:00'), ('text', "serious selekeh sangat! badan mcm kayu nak pakai baju ketat ketat. dengan tangan mcm sotong klau bercakap. wuuuuu --'"), ('word_count', '18.0')])
100100
Results: OrderedDict([('_serial', '99'), ('_time', '2013-10-04T08:11:33.000-07:00'), ('text', '\xd8\xb1\xd8\xa8 \xd8\xa3\xd9\x86\xd9\x8a \xd9\x85\xd8\xb3\xd9\x86\xd9\x8a \xd8\xa7\xd9\x84\xd8\xb6\xd8\xb1 \xd9\x88 \xd8\xa7\xd9\x86\xd8\xaa \xd8\xa7\xd8\xb1\xd8\xad\xd9\x85 \xd8\xa7\xd9\x84\xd8\xb1\xd8\xa7\xd8\xad\xd9\x85\xd9\x8a\xd9\x86..\n \xd8\xb4\xd8\xa7\xd9\x87\xd8\xaf: http://t.co/MIc0UNNkaQ \n#\xd8\xba\xd8\xb1\xd8\xaf_\xd8\xa8\xd8\xb0\xd9\x83\xd8\xb1_\xd8\xa7\xd9\x84\xd9\x84\xd9\x87\n#\xd8\xaf\xd8\xb9\xd8\xa7\xd8\xa1_\xd9\x84\xd8\xb1\xd8\xa8\xd9\x8a'), ('word_count', '7.0')])
101-
is_preview = False
101+
is_preview = False

tests/test_searchcommands_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ def _assertCorrectOneshotResults(self, query, test_name):
407407
actual += ['Results: %s' % result]
408408
elif isinstance(result, Message):
409409
actual += ['Message: %s' % result]
410-
actual = sorted(actual) + ['is_preview = %s' % reader.is_preview]
410+
actual = actual + ['is_preview = %s' % reader.is_preview]
411411
actual = '\n'.join(actual)
412412
with TestSearchCommandsApp._open_data_file('_expected_results/%s.txt' % test_name, 'r') as expected:
413413
self.assertMultiLineEqual(''.join(expected.readlines()), ''.join(actual))

0 commit comments

Comments
 (0)