

@patch('orchestra.accounts.forms.get_slack_user_id')
def test_missing_fields(self, mock_get_slack_user_id):
    mock_get_slack_user_id.return_value = 'test_id'
    required_fields = self._get_account_settings_mock_data().keys()
    for field in required_fields:
        data = self._get_account_settings_mock_data()
        data.pop(field)
        response = self.request_client.post(self.url, data)
        self.assertFalse(response.context['success'])

dataset/ETHPy150Open unlimitedlabs/orchestra/orchestra/accounts/tests/test_views.py AccountSettingsTest.test_missing_fields/original