Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(875)

Unified Diff: infra/libs/event_mon/test/config_test.py

Issue 875403010: event_mon: actually implemented push (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Rebased + fixed nits Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « infra/libs/event_mon/router.py ('k') | infra/libs/event_mon/test/monitoring_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: infra/libs/event_mon/test/config_test.py
diff --git a/infra/libs/event_mon/test/config_test.py b/infra/libs/event_mon/test/config_test.py
index 7a97712428675cc1d0c4a85de370cede94adcb38..ad181fb61c0df5d470bef848e28178a451ee12a9 100644
--- a/infra/libs/event_mon/test/config_test.py
+++ b/infra/libs/event_mon/test/config_test.py
@@ -13,8 +13,8 @@ class ConfigTest(unittest.TestCase):
def _set_up_args(self, args=None):
parser = argparse.ArgumentParser()
event_mon.add_argparse_options(parser)
- args = parser.parse_args((args or []) + ['--event-mon-dry-run', 'True'])
- self.assertEquals(args.event_mon_dry_run, True)
+ args = parser.parse_args((args or []))
+ self.assertEquals(args.event_mon_run_type, 'dry')
event_mon.process_argparse_options(args)
r = config._router
self.assertIsInstance(r, router._Router)
« no previous file with comments | « infra/libs/event_mon/router.py ('k') | infra/libs/event_mon/test/monitoring_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698