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

Side by Side Diff: tools/telemetry/third_party/pyfakefs/pyfakefs/all_tests.py

Issue 1310343005: [Telemetry] Add pyfakefs to telemetry/third_party (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add license header to setup.py Created 5 years, 3 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 #! /usr/bin/env python
2 #
3 # Copyright 2009 Google Inc. All Rights Reserved.
4 #
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 # http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16
17 """A test suite that runs all tests for pyfakefs at once."""
18
19 import unittest
20
21 import fake_filesystem_glob_test
22 import fake_filesystem_shutil_test
23 import fake_filesystem_test
24 import fake_filesystem_vs_real_test
25 import fake_tempfile_test
26 import fake_filesystem_unittest_test
27 import example_test
28
29
30 class AllTests(unittest.TestSuite):
31 """A test suite that runs all tests for pyfakefs at once."""
32
33 def suite(self): # pylint: disable-msg=C6409
34 loader = unittest.defaultTestLoader
35 self.addTests([
36 loader.loadTestsFromModule(fake_filesystem_test),
37 loader.loadTestsFromModule(fake_filesystem_glob_test),
38 loader.loadTestsFromModule(fake_filesystem_shutil_test),
39 loader.loadTestsFromModule(fake_tempfile_test),
40 loader.loadTestsFromModule(fake_filesystem_vs_real_test),
41 loader.loadTestsFromModule(fake_filesystem_unittest_test),
42 loader.loadTestsFromModule(example_test),
43 ])
44 return self
45
46 if __name__ == '__main__':
47 unittest.TextTestRunner(verbosity=2).run(AllTests().suite())
OLDNEW
« no previous file with comments | « tools/telemetry/third_party/pyfakefs/pyfakefs/__init__.py ('k') | tools/telemetry/third_party/pyfakefs/pyfakefs/example.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698