All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Aníbal Limón" <anibal.limon@linux.intel.com>
To: toaster@yoctoproject.org
Cc: benjamin.esquivel@linux.intel.com, william.c.randle@intel.com
Subject: [PATCH 2/8] toaster/tests: Add __init__.py and base.py.
Date: Tue, 23 Feb 2016 11:31:24 -0600	[thread overview]
Message-ID: <1456248690-24299-3-git-send-email-anibal.limon@linux.intel.com> (raw)
In-Reply-To: <1456248690-24299-1-git-send-email-anibal.limon@linux.intel.com>

Add empty __init__.py for set folder as module.

Add base.py module that contains a base class for toaster test
cases now have an object with options and a logger.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
---
 lib/toaster/tests/__init__.py |  0
 lib/toaster/tests/base.py     | 11 +++++++++++
 2 files changed, 11 insertions(+)
 create mode 100644 lib/toaster/tests/__init__.py
 create mode 100644 lib/toaster/tests/base.py

diff --git a/lib/toaster/tests/__init__.py b/lib/toaster/tests/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/lib/toaster/tests/base.py b/lib/toaster/tests/base.py
new file mode 100644
index 0000000..8b303ac
--- /dev/null
+++ b/lib/toaster/tests/base.py
@@ -0,0 +1,11 @@
+import unittest
+
+class ToasterOptions(object): 
+    pass
+
+class ToasterTestCase(unittest.TestCase):
+    def __init__(self, testname, opts, logger):
+        super(ToasterTestCase, self).__init__(testname)
+
+        self.opts = opts
+        self.logger = logger
-- 
2.1.4



  parent reply	other threads:[~2016-02-23 17:29 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-23 17:31 [PATCH 0/8] Toaster improve test suite Aníbal Limón
2016-02-23 17:31 ` [PATCH 1/8] toaster/tests: Reorder/move current test code Aníbal Limón
2016-02-23 17:31 ` Aníbal Limón [this message]
2016-02-23 17:31 ` [PATCH 3/8] toaster/tests: Improve ui.py module Aníbal Limón
2016-02-23 17:31 ` [PATCH 4/8] toaster/tests: Adds setup test case Aníbal Limón
2016-02-23 17:31 ` [PATCH 5/8] toaster/tests: Add helpers.py module Aníbal Limón
2016-02-23 17:31 ` [PATCH 6/8] toaster-test: Refactor and imporvements Aníbal Limón
2016-02-23 17:31 ` [PATCH 7/8] toaster/tests: Add README, TODO and requeriments Aníbal Limón
2016-02-23 17:31 ` [PATCH 8/8] toaster/tests: Adds Copyright information Aníbal Limón
2016-03-18 16:29 ` [PATCH 0/8] Toaster improve test suite Brian Avery
2016-03-18 16:55   ` Aníbal Limón

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1456248690-24299-3-git-send-email-anibal.limon@linux.intel.com \
    --to=anibal.limon@linux.intel.com \
    --cc=benjamin.esquivel@linux.intel.com \
    --cc=toaster@yoctoproject.org \
    --cc=william.c.randle@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.