Пример #1
0
 def test_update_credentials(self):
     task = SalesforceCommand(self.project_config, self.task_config,
                              self.org_config)
     task()
     self.org_config.refresh_oauth_token.assert_called_once()
Пример #2
0
 def test_get_env(self):
     task = SalesforceCommand(self.project_config, self.task_config,
                              self.org_config)
     env = task._get_env()
     self.assertIn("SF_ACCESS_TOKEN", env)
     self.assertIn("SF_INSTANCE_URL", env)
 def test_get_env(self):
     task = SalesforceCommand(self.project_config, self.task_config, self.org_config)
     env = task._get_env()
     self.assertIn("SF_ACCESS_TOKEN", env)
     self.assertIn("SF_INSTANCE_URL", env)