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

Unified Diff: testing/legion/unittests/legion_unittest.py

Issue 1585373003: Adding a cross-task eventing server. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing reviewers comments Created 4 years, 11 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 | « testing/legion/unittests/event_server_test.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/legion/unittests/legion_unittest.py
diff --git a/testing/legion/unittests/legion_unittest.py b/testing/legion/unittests/legion_unittest.py
new file mode 100644
index 0000000000000000000000000000000000000000..2d9eb9e315a9fc0d835e271fc281830e4e565c69
--- /dev/null
+++ b/testing/legion/unittests/legion_unittest.py
@@ -0,0 +1,31 @@
+# Copyright 2015 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""Base test class for Legion-specific unittests.
+
+Currently this module is only needed to setup the import paths for the
+unittests. This will allow unittests to use the import format:
+
+from legion.foo import bar
+
+Using this base class for all unittests allows for easier extensibility in
+the future.
+"""
+
+import os
+import sys
+import unittest
+
+# Setup import paths
+THIS_DIR = os.path.dirname(os.path.abspath(__file__))
+LEGION_IMPORT_FIX = os.path.join(THIS_DIR, '..', '..')
+sys.path.append(LEGION_IMPORT_FIX)
+
+
+class TestCase(unittest.TestCase):
+ pass
+
+
+def main():
+ unittest.main(verbosity=0, argv=sys.argv[:1])
« no previous file with comments | « testing/legion/unittests/event_server_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698