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

Side by Side Diff: packages/infra_libs/infra_libs/test/app_test.py

Issue 2179853002: Added packages/infra_libs as the first Python package. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Final rebase (no actual changes) Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import argparse 5 import argparse
6 import unittest 6 import unittest
7 7
8 import mock 8 import mock
9 9
10 from infra_libs import app 10 from infra_libs import app
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 class Application(MockApplication): 88 class Application(MockApplication):
89 USES_TS_MON = False 89 USES_TS_MON = False
90 90
91 a = Application() 91 a = Application()
92 a.main.side_effect = Exception 92 a.main.side_effect = Exception
93 ts_mon.reset_for_unittest(disable=True) 93 ts_mon.reset_for_unittest(disable=True)
94 94
95 with self.assertRaises(SystemExit) as cm: 95 with self.assertRaises(SystemExit) as cm:
96 a.run(['appname']) 96 a.run(['appname'])
97 self.assertEqual(1, cm.exception.code) 97 self.assertEqual(1, cm.exception.code)
OLDNEW
« no previous file with comments | « packages/infra_libs/infra_libs/test/__init__.py ('k') | packages/infra_libs/infra_libs/test/data/README.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698