Skip to content
  • rniwa@webkit.org's avatar
    perf-o-matic needs model unit tests · 350dc8ff
    rniwa@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=78885
    
    Reviewed by Adam Barth.
    
    Added unit tests for models.py.
    
    Also renamed modelFromNumericId to model_from_numeric_id and moved set_persitent_cache and get_persistent_cache
    from controller to PersistentCache.set_cache and PersistentCahce.set_cache respectively.
    
    * Websites/webkit-perf.appspot.com/controller.py:
    (cache_manifest):
    (CachedManifestHandler.get):
    (cache_dashboard):
    (CachedDashboardHandler.get):
    (cache_runs):
    (CachedRunsHandler.get):
    * Websites/webkit-perf.appspot.com/create_handler.py:
    (CreateHandler._create_builder):
    (CreateHandler._create_builder.execute):
    * Websites/webkit-perf.appspot.com/models.py:
    (create_in_transaction_with_numeric_id_holder):
    (model_from_numeric_id):
    (Builder):
    (Builder.create):
    (Builder.update_password):
    (Builder._hashed_password):
    (TestResult.key_name):
    (ReportLog.get_value):
    (ReportLog._integer_in_payload):
    (ReportLog):
    (ReportLog.timestamp):
    (PersistentCache):
    (PersistentCache.set_cache):
    (PersistentCache.set_cache.execute):
    (PersistentCache.get_cache):
    * Websites/webkit-perf.appspot.com/models_unittest.py: Added.
    (HelperTests):
    (HelperTests.setUp):
    (HelperTests.tearDown):
    (HelperTests._assert_there_is_exactly_one_id_holder_and_matches):
    (HelperTests.test_create_in_transaction_with_numeric_id_holder):
    (HelperTests.test_create_in_transaction_with_numeric_id_holder.execute):
    (HelperTests.test_failing_in_create_in_transaction_with_numeric_id_holder):
    (HelperTests.test_failing_in_create_in_transaction_with_numeric_id_holder.execute):
    (HelperTests.test_raising_in_create_in_transaction_with_numeric_id_holder):
    (HelperTests.test_raising_in_create_in_transaction_with_numeric_id_holder.execute):
    (HelperTests.test_delete_model_with_numeric_id_holder):
    (HelperTests.test_delete_model_with_numeric_id_holder.execute):
    (HelperTests.test_model_from_numeric_id):
    (HelperTests.test_model_from_numeric_id.execute):
    (BuilderTests):
    (BuilderTests.setUp):
    (BuilderTests.tearDown):
    (BuilderTests.test_create):
    (BuilderTests.test_update_password):
    (BuilderTests.test_hashed_password):
    (BuilderTests.test_authenticate):
    (ReportLog):
    (ReportLog.setUp):
    (ReportLog.tearDown):
    (ReportLog._create_log_with_payload):
    (ReportLog.test_parsed_payload):
    (ReportLog.test_get_value):
    (ReportLog.test_results):
    (ReportLog.test_builder):
    (ReportLog.test_build_number):
    (ReportLog.test_webkit_revision):
    (ReportLog.chromium_revision):
    (PersistentCacheTests):
    (PersistentCacheTests.setUp):
    (PersistentCacheTests.tearDown):
    (PersistentCacheTests._assert_persistent_cache):
    (PersistentCacheTests.test_set):
    (PersistentCacheTests.test_get):
    * Websites/webkit-perf.appspot.com/runs_handler.py:
    (RunsHandler.post):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108094 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    350dc8ff