Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion social_core/pipeline/disconnect.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def allowed_to_disconnect(
strategy, user, name, user_storage, association_id=None, *args, **kwargs
):
if not user_storage.allowed_to_disconnect(user, name, association_id):
raise NotAllowedToDisconnect()
raise NotAllowedToDisconnect


def get_entries(
Expand Down
4 changes: 2 additions & 2 deletions social_core/tests/test_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class UnknownError(Exception):
class IntegrityErrorUserSocialAuth(TestUserSocialAuth):
@classmethod
def create_social_auth(cls, user, uid, provider):
raise IntegrityError()
raise IntegrityError

@classmethod
def get_social_auth(cls, provider, uid):
Expand All @@ -44,7 +44,7 @@ def is_integrity_error(cls, exception):
class UnknownErrorUserSocialAuth(TestUserSocialAuth):
@classmethod
def create_social_auth(cls, user, uid, provider):
raise UnknownError()
raise UnknownError


class UnknownErrorStorage(IntegrityErrorStorage):
Expand Down
4 changes: 2 additions & 2 deletions social_core/tests/test_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class BrokenStrategy(BaseStrategy):

class BrokenStrategyWithSettings(BrokenStrategy):
def get_setting(self, name):
raise AttributeError()
raise AttributeError


class BrokenStorage(BaseStorage):
Expand Down Expand Up @@ -185,7 +185,7 @@ def test_random_string(self):

def test_random_string_without_systemrandom(self):
def SystemRandom():
raise NotImplementedError()
raise NotImplementedError

orig_random = getattr(random, "SystemRandom", None)
random.SystemRandom = SystemRandom
Expand Down
Loading