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

Side by Side Diff: frontend/frontend_unittest.py

Issue 6539001: Merge remote branch 'cros/upstream' into master. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git@master
Patch Set: patch Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « frontend/afe/resources_test.py ('k') | server/crashcollect.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 import unittest, os 3 import unittest, os
4 import common 4 import common
5 from autotest_lib.frontend import setup_django_environment 5 from autotest_lib.frontend import setup_django_environment
6 from autotest_lib.frontend import setup_test_environment 6 from autotest_lib.frontend import setup_test_environment
7 from autotest_lib.frontend.afe import test, readonly_connection 7 from autotest_lib.frontend.afe import test, readonly_connection
8 from autotest_lib.client.common_lib import global_config 8 from autotest_lib.client.common_lib import global_config
9 9
10 _APP_DIR = os.path.join(os.path.dirname(__file__), 'afe') 10 _APP_DIR = os.path.join(os.path.dirname(__file__), 'afe')
11 11
12 class FrontendTest(unittest.TestCase): 12 class FrontendTest(unittest.TestCase):
13 def setUp(self): 13 def setUp(self):
14 setup_test_environment.set_up() 14 setup_test_environment.set_up()
15 global_config.global_config.override_config_value( 15 global_config.global_config.override_config_value(
16 'AUTOTEST_WEB', 'parameterized_jobs', 'False') 16 'AUTOTEST_WEB', 'parameterized_jobs', 'False')
17 global_config.global_config.override_config_value(
18 'SERVER', 'rpc_logging', 'False')
17 19
18 20
19 def tearDown(self): 21 def tearDown(self):
20 setup_test_environment.tear_down() 22 setup_test_environment.tear_down()
21 23
22 24
23 def test_all(self): 25 def test_all(self):
24 doctest_runner = test.DoctestRunner(_APP_DIR, 'frontend.afe') 26 doctest_runner = test.DoctestRunner(_APP_DIR, 'frontend.afe')
25 errors = doctest_runner.run_tests() 27 errors = doctest_runner.run_tests()
26 self.assert_(errors == 0, '%s failures in frontend unit tests' % errors) 28 self.assert_(errors == 0, '%s failures in frontend unit tests' % errors)
27 29
28 30
29 if __name__ == '__main__': 31 if __name__ == '__main__':
30 unittest.main() 32 unittest.main()
OLDNEW
« no previous file with comments | « frontend/afe/resources_test.py ('k') | server/crashcollect.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698