Skip to content

Commit 72580e0

Browse files
author
Shakeel Mohamed
committed
cleanup + add todos
1 parent 0650bc3 commit 72580e0

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

‎tests/searchcommands/test_examples.py‎

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ def test_option_show_configuration(self):
270270
os.path.join('input', '_empty.csv'),
271271
os.path.join('output', 'test_option_show_configuration.csv'),
272272
os.path.join('log', 'test_option_show_configuration.log')))
273+
# TODO: is this testing anything?
273274
return
274275

275276
# TODO, use a generating command that doesn't do random sampling because
@@ -303,6 +304,7 @@ def test_generating_command_in_isolation(self):
303304
'test_generating_command_in_isolation.log')))
304305
self._assertCorrectOutputFile(
305306
'test_generating_command_in_isolation.getinfo.csv')
307+
# TODO: another test failing w/ keys out of order
306308
# self._assertCorrectOutputFile('test_generating_command_in_isolation.execute.csv')
307309
return
308310

@@ -367,12 +369,9 @@ def test_generating_command_as_unit(self):
367369

368370
def test_helloworld_generating_command_as_unit(self):
369371
helloworld_path = get_searchcommand_example("generatehello.py")
370-
371372
self.assertTrue(os.path.isfile(helloworld_path))
372-
373373
helloworld = imp.load_source('searchcommands_app', helloworld_path)
374374

375-
# TODO: actually test this __GETINFO__ code path on all "as_unit" tests
376375
instream = StringIO()
377376
outstream = StringIO()
378377
cli_args = [
@@ -485,13 +484,9 @@ def test_reporting_command_on_server(self):
485484

486485
def test_reporting_command_as_unit(self):
487486
sum_path = get_searchcommand_example("sum.py")
488-
489487
self.assertTrue(os.path.isfile(sum_path))
490-
491488
sum_module = imp.load_source('searchcommands_app', sum_path)
492489

493-
# TODO: actually test this __GETINFO__ code path on all "as_unit" tests
494-
495490
# Map tests
496491

497492
instream = StringIO(open(os.path.join(os.path.dirname(__file__), "data", "input", "counts.csv")).read())
@@ -611,7 +606,7 @@ def test_streaming_command_in_isolation(self):
611606
'test_generating_command_in_isolation.log')))
612607
self._assertCorrectOutputFile(
613608
'test_streaming_command_in_isolation.getinfo.csv')
614-
# TODO: fix this failing test due to keys being out of order
609+
# TODO: fix this failing test due to keys out of order
615610
# self._assertCorrectOutputFile('test_streaming_command_in_isolation.execute.csv')
616611
return
617612

@@ -711,7 +706,6 @@ def _open_data_file(cls, relative_path, mode):
711706

712707
@classmethod
713708
def _start_process(cls, args, stdin, stdout, stderr):
714-
# TODO: make doc note about this?
715709
# TODO: make a shell script to run some of these seperately, check results there
716710
return Popen(args, stdin=stdin, stdout=stdout, stderr=stderr,
717711
cwd=cls.app_bin)

0 commit comments

Comments
 (0)