All of lore.kernel.org
 help / color / mirror / Atom feed
* [review request] [PATCH 00/11] ed/toaster/fix-orm-tests
@ 2015-08-06  7:27 Ed Bartosh
  2015-08-06  7:27 ` [PATCH 01/11] toaster: remove prints from the test code Ed Bartosh
                   ` (10 more replies)
  0 siblings, 11 replies; 14+ messages in thread
From: Ed Bartosh @ 2015-08-06  7:27 UTC (permalink / raw)
  To: toaster

Hi,

This patchset contains fixes and code cleanups for Toaster ORM tests.
Some tests were completely rewritten.

Now all 7 test cases are passed and pylint score is 10.

The following changes since commit a8b723498c9a7106210db140452886894494b4d6:

  bitbake: cooker: Resolve file monitoring race issues when using memres bitbake (2015-08-03 07:36:25 +0100)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib ed/toaster/fix-orm-tests
  http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=ed/toaster/fix-orm-tests

Ed Bartosh (11):
  toaster: remove prints from the test code
  toaster: fix test_build_layerversion test case
  toaster: rewrite test for LayerSource model
  toaster: rewrite LILSUpdateTestCase
  toaster: reformat LayerVersionEquivalenceTestCase
  toaster: reuse common code
  toaster: remove duplicated code
  toaster: simplify testcase code
  toaster: add header to orm/test.py
  toaster: remove ProjectLVSelectionTestCase
  toaster: move code from setup_lv_tests to setUp

 bitbake/lib/toaster/orm/tests.py | 272 ++++++++++++++++++++-------------------
 1 file changed, 143 insertions(+), 129 deletions(-)

--
Regards,
Ed



^ permalink raw reply	[flat|nested] 14+ messages in thread
* [PATCH 01/11] toaster: remove prints from the test code
  2015-08-10 11:20 ` [PATCH 00/11] Fixes and clean ups for Toaster ORM unit tests Michael Wood
@ 2015-08-10 11:21 Michael Wood
  2015-08-10 11:20 ` [PATCH 00/11] Fixes and clean ups for Toaster ORM unit tests Michael Wood
  0 siblings, 1 reply; 14+ messages in thread
From: Michael Wood @ 2015-08-10 11:21 UTC (permalink / raw)
  To: bitbake-devel

From: Ed Bartosh <ed.bartosh@linux.intel.com>

Removed prints as they make test output harder to understand.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
---
 lib/toaster/orm/tests.py | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/lib/toaster/orm/tests.py b/lib/toaster/orm/tests.py
index d4d97ee..df9a2a9 100644
--- a/lib/toaster/orm/tests.py
+++ b/lib/toaster/orm/tests.py
@@ -18,9 +18,6 @@ class LayerSourceVerifyInheritanceSaveLoad(TestCase):
         lils = LayerSource.objects.create(name = "a2", sourcetype = LayerSource.TYPE_LAYERINDEX, apiurl = "")
         imls = LayerSource.objects.create(name = "a3", sourcetype = LayerSource.TYPE_IMPORTED, apiurl = "")
 
-        import pprint
-        pprint.pprint([(x.__class__,vars(x)) for x in LayerSource.objects.all()])
-
         self.assertTrue(True in map(lambda x: isinstance(x, LocalLayerSource), LayerSource.objects.all()))
         self.assertTrue(True in map(lambda x: isinstance(x, LayerIndexLayerSource), LayerSource.objects.all()))
         self.assertTrue(True in map(lambda x: isinstance(x, ImportedLayerSource), LayerSource.objects.all()))
@@ -42,7 +39,6 @@ class LILSUpdateTestCase(TransactionTestCase):
     def test_update(self):
         layer_index_url = os.getenv("TTS_LAYER_INDEX")
         if layer_index_url == None:
-            print "Using layers.openembedded.org for layer index. override with TTS_LAYER_INDEX enviroment variable"
             layer_index_url = "http://layers.openembedded.org/"
 
         lils = LayerSource.objects.create(name = "b1", sourcetype = LayerSource.TYPE_LAYERINDEX, apiurl = layer_index_url + "layerindex/api/")
-- 
2.1.4



^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2015-08-10 14:53 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-06  7:27 [review request] [PATCH 00/11] ed/toaster/fix-orm-tests Ed Bartosh
2015-08-06  7:27 ` [PATCH 01/11] toaster: remove prints from the test code Ed Bartosh
2015-08-06  7:27 ` [PATCH 02/11] toaster: fix test_build_layerversion test case Ed Bartosh
2015-08-06  7:27 ` [PATCH 03/11] toaster: rewrite test for LayerSource model Ed Bartosh
2015-08-06  7:27 ` [PATCH 04/11] toaster: rewrite LILSUpdateTestCase Ed Bartosh
2015-08-06  7:27 ` [PATCH 05/11] toaster: reformat LayerVersionEquivalenceTestCase Ed Bartosh
2015-08-06  7:27 ` [PATCH 06/11] toaster: reuse common code Ed Bartosh
2015-08-06  7:27 ` [PATCH 07/11] toaster: remove duplicated code Ed Bartosh
2015-08-06  7:27 ` [PATCH 08/11] toaster: simplify testcase code Ed Bartosh
2015-08-06  7:27 ` [PATCH 09/11] toaster: add header to orm/test.py Ed Bartosh
2015-08-06  7:27 ` [PATCH 10/11] toaster: remove ProjectLVSelectionTestCase Ed Bartosh
2015-08-06  7:27 ` [PATCH 11/11] toaster: move code from setup_lv_tests to setUp Ed Bartosh
2015-08-10 14:53   ` Michael Wood
  -- strict thread matches above, loose matches on Subject: below --
2015-08-10 11:21 [PATCH 01/11] toaster: remove prints from the test code Michael Wood
2015-08-10 11:20 ` [PATCH 00/11] Fixes and clean ups for Toaster ORM unit tests Michael Wood
2015-08-10 11:21   ` [PATCH 11/11] toaster: move code from setup_lv_tests to setUp Michael Wood

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.