mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-22 07:55:07 +00:00
Add function to get all test results as a map
- This will be required for pushing out to a test report
This commit is contained in:
1 parent
2bb9fd9955
commit
df91b8cf4d
3 files changed
+54
No files matched your search
@@ -423,3 +423,11 @@ class TestResultTest(StockTest):
|
||||
# Passing tests
|
||||
self.assertEqual(item.getTestResults(result=True).count(), 3)
|
||||
self.assertEqual(item.getTestResults(result=False).count(), 1)
|
||||
|
||||
# Result map
|
||||
result_map = item.testResultMap()
|
||||
|
||||
self.assertEqual(len(result_map), 3)
|
||||
|
||||
for test in ['Firmware Version', 'Settings Checksum', 'Temperature Test']:
|
||||
self.assertIn(test, result_map.keys())
|
||||
Reference in new issue
Block a user