Skip to content

Commit

Permalink
removed debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
artgoldberg committed Jul 5, 2019
1 parent 922d414 commit 4b96c17
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions tests/examples/test_simulation_run.py
Expand Up @@ -16,10 +16,8 @@ def test_simulation_run(self):
with CaptureOutput(relay=False) as capturer:
import examples.simulation_run

saved_text = capturer.get_text()
events = re.search(r'Simulated (\d+) events', capturer.get_text())
num_events = int(events.group(1))
self.assertTrue(0 < num_events)
results = re.search("Saved checkpoints and run results in '(.*?)'", capturer.get_text())
self.assertTrue(results is not None)
print('capturer.get_text()', saved_text)
4 changes: 1 addition & 3 deletions tests/multialgorithm/test_multialgorithm_main.py
Expand Up @@ -53,11 +53,9 @@ def test_app_run(self):
with __main__.App(argv=argv) as app:
with CaptureOutput(relay=False) as capturer:
app.run()
saved_text = capturer.get_text()
events = re.search(r'^Simulated (\d+) events', capturer.get_text())
events = re.search(r'Simulated (\d+) events', capturer.get_text())
results = re.search("Saved checkpoints and run results in '(.*?)'$", capturer.get_text())
num_events = int(events.group(1))
self.assertTrue(0 < num_events)
results_dir = results.group(1)
self.assertTrue(results_dir.startswith(self.checkpoints_dir))
print('capturer.get_text()', saved_text)

0 comments on commit 4b96c17

Please sign in to comment.