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

Unified Diff: appengine/findit/model/crash/test/crash_analysis_test.py

Issue 2074273002: [Findit] Add feedback button for manual triage. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@show-result
Patch Set: Created 4 years, 6 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
Index: appengine/findit/model/crash/test/crash_analysis_test.py
diff --git a/appengine/findit/model/crash/test/crash_analysis_test.py b/appengine/findit/model/crash/test/crash_analysis_test.py
index c8ed61d26db65ffcb06e292040d9683d818538d3..464f9ee895b9e5bfd9abee071b98e6d0305f6473 100644
--- a/appengine/findit/model/crash/test/crash_analysis_test.py
+++ b/appengine/findit/model/crash/test/crash_analysis_test.py
@@ -83,3 +83,15 @@ class CrashAnalysisTest(unittest.TestCase):
self.assertEqual(analysis.culprit_components, [])
self.assertEqual(analysis.triage_history, None)
self.assertEqual(analysis.note, '')
+
+ def testUpdateCrashAnalysis(self):
+ update = {'note': 'dummy'}
+ analysis = CrashAnalysis()
+ analysis.Update(update)
+ self.assertEqual(analysis.note, update['note'])
+
+ def testUpdateCrashAnalysisWithNonExistentProperty(self):
+ update = {'dummy': 'dummy_content'}
+ analysis = CrashAnalysis()
+ analysis.Update(update)
+ self.assertFalse(hasattr(analysis, 'dummy'))

Powered by Google App Engine
This is Rietveld 408576698