[golemfactory/golem] Structured local test result (#3128)

mdtanrikulu commented on this pull request.

> @@ -298,12 +305,17 @@ def test_after_test(self):
results = {«data»: {notalog, outlog, errlog}}
after_test_data = self.bt.after_test(results, None)
warnings = after_test_data[«warnings»]

— self.assertTrue(«f1.png» in warnings)
— self.assertTrue(«file2.png» in warnings)
— self.assertTrue(«file3.png» in warnings)
— self.assertEqual(warnings.count(«file2.png»), 1)
— self.assertFalse(«file4.png» in warnings)
+ self.assertTrue([f for f in warnings[‘missing_files’]
+ if f[‘baseName’] == «f1.png»])
+ self.assertTrue([f for f in warnings[‘missing_files’]
+ if f[‘baseName’] == «file2.png»])
+ self.assertTrue([f for f in warnings[‘missing_files’]
+ if f[‘baseName’] == «file3.png»])
+ self.assertEqual(
+ sum(f[‘baseName’] ==
+ «file2.png» for f in warnings[‘missing_files’]), 1)

Test was there, only thing I did is update to the new form. Who wrote the test probably wanted to be sure if there’s any duplicate still, If needless, which it is with set usage, I can remove it.