Beispiel #1
0
 def test_05_should_update_project_subscription(self):
     stdin = {
         "subscription" : ["ApexPage","ApexComponent"], 
         "project_name" : "unit test project" 
     }
     mm_response = self.runCommand('update_subscription', stdin)
     self.assertTrue(mm_response['success'] == True)
     project_settings = util.parse_json_file(os.path.join(base_test_directory, 'test_workspace', 'unit test project', 'config', '.settings'))
     self.assertTrue(type(project_settings['subscription']) is list and len(project_settings['subscription']) == 2)
     self.assertTrue(project_settings['subscription'][0] == "ApexPage")
     self.assertTrue(project_settings['subscription'][1] == "ApexComponent")
Beispiel #2
0
 def test_05_should_update_project_subscription(self):
     stdin = {
         "subscription": ["ApexPage", "ApexComponent"],
         "project_name": "unit test project"
     }
     mm_response = self.runCommand('update_subscription', stdin)
     self.assertTrue(mm_response['success'] == True)
     project_settings = util.parse_json_file(
         os.path.join(base_test_directory, 'test_workspace',
                      'unit test project', 'config', '.settings'))
     self.assertTrue(
         type(project_settings['subscription']) is list
         and len(project_settings['subscription']) == 2)
     self.assertTrue(project_settings['subscription'][0] == "ApexPage")
     self.assertTrue(project_settings['subscription'][1] == "ApexComponent")
Beispiel #3
0
 def test_05_should_update_debug_settings(self): 
     stdin = {
         "project_name"      : "unit test tooling project",
         "debug_categories"  : {
             "Workflow"      : "FINE", 
             "Callout"       : "FINE", 
             "System"        : "FINE", 
             "Database"      : "FINE", 
             "ApexCode"      : "FINE", 
             "Validation"    : "FINE", 
             "Visualforce"   : "FINE"
         },
         "expiration"        : 120
     }
     mm_response = self.runCommand('update_debug_settings', stdin)
     new_debug_settings = util.parse_json_file(os.path.join(base_test_directory, "test_workspace", stdin["project_name"], "config", ".debug"))
     self.assertTrue(new_debug_settings['expiration'] == stdin["expiration"])
     self.assertTrue(new_debug_settings['levels']['Workflow'] == stdin["debug_categories"]["Workflow"])
     self.assertTrue(new_debug_settings['levels']['Visualforce'] == stdin["debug_categories"]["Visualforce"])
Beispiel #4
0
 def test_05_should_update_debug_settings(self):
     stdin = {
         "project_name": "unit test tooling project",
         "debug_categories": {
             "Workflow": "FINE",
             "Callout": "FINE",
             "System": "FINE",
             "Database": "FINE",
             "ApexCode": "FINE",
             "Validation": "FINE",
             "Visualforce": "FINE"
         },
         "expiration": 120
     }
     mm_response = self.runCommand('update_debug_settings', stdin)
     new_debug_settings = util.parse_json_file(
         os.path.join(base_test_directory, "test_workspace",
                      stdin["project_name"], "config", ".debug"))
     self.assertTrue(
         new_debug_settings['expiration'] == stdin["expiration"])
     self.assertTrue(new_debug_settings['levels']['Workflow'] ==
                     stdin["debug_categories"]["Workflow"])
     self.assertTrue(new_debug_settings['levels']['Visualforce'] ==
                     stdin["debug_categories"]["Visualforce"])