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

Side by Side Diff: infra/tools/new_tool/test/__main___test.py

Issue 1172053003: Created infra/tools/new_tool (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: More tests Created 5 years, 6 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
(Empty)
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
3 # found in the LICENSE file.
4
5 import os
6 import unittest
7
8 import infra.tools.new_tool.__main__ as new_tool_main
9 import infra_libs
10
11
12 class TestMain(unittest.TestCase):
13 def test_run_main(self):
14 with infra_libs.temporary_directory(prefix='new-tool-test-') as tempdir:
15 new_tool_main.main(['whatever_tool', '--base-dir', tempdir])
16 self.assertTrue(os.path.isdir(os.path.join(tempdir, 'whatever_tool')))
OLDNEW
« no previous file with comments | « infra/tools/new_tool/test/__init__.py ('k') | infra/tools/new_tool/test/data/test_template.template » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698