diff options
author | django-bot <ops@djangoproject.com> | 2022-02-03 20:24:19 +0100 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-02-07 20:37:05 +0100 |
commit | 9c19aff7c7561e3a82978a272ecdaad40dda5c00 (patch) | |
tree | f0506b668a013d0063e5fba3dbf4863b466713ba /tests/custom_migration_operations | |
parent | f68fa8b45dfac545cfc4111d4e52804c86db68d3 (diff) | |
download | django-9c19aff7c7561e3a82978a272ecdaad40dda5c00.tar.gz |
Refs #33476 -- Reformatted code with Black.
Diffstat (limited to 'tests/custom_migration_operations')
-rw-r--r-- | tests/custom_migration_operations/more_operations.py | 6 | ||||
-rw-r--r-- | tests/custom_migration_operations/operations.py | 34 |
2 files changed, 10 insertions, 30 deletions
diff --git a/tests/custom_migration_operations/more_operations.py b/tests/custom_migration_operations/more_operations.py index 30cf246ceb..cbeae483b5 100644 --- a/tests/custom_migration_operations/more_operations.py +++ b/tests/custom_migration_operations/more_operations.py @@ -6,11 +6,7 @@ class TestOperation(Operation): pass def deconstruct(self): - return ( - self.__class__.__name__, - [], - {} - ) + return (self.__class__.__name__, [], {}) @property def reversible(self): diff --git a/tests/custom_migration_operations/operations.py b/tests/custom_migration_operations/operations.py index bd62280f81..f63f0b2a3a 100644 --- a/tests/custom_migration_operations/operations.py +++ b/tests/custom_migration_operations/operations.py @@ -6,11 +6,7 @@ class TestOperation(Operation): pass def deconstruct(self): - return ( - self.__class__.__name__, - [], - {} - ) + return (self.__class__.__name__, [], {}) @property def reversible(self): @@ -38,11 +34,7 @@ class ArgsOperation(TestOperation): self.arg1, self.arg2 = arg1, arg2 def deconstruct(self): - return ( - self.__class__.__name__, - [self.arg1, self.arg2], - {} - ) + return (self.__class__.__name__, [self.arg1, self.arg2], {}) class KwargsOperation(TestOperation): @@ -52,14 +44,10 @@ class KwargsOperation(TestOperation): def deconstruct(self): kwargs = {} if self.kwarg1 is not None: - kwargs['kwarg1'] = self.kwarg1 + kwargs["kwarg1"] = self.kwarg1 if self.kwarg2 is not None: - kwargs['kwarg2'] = self.kwarg2 - return ( - self.__class__.__name__, - [], - kwargs - ) + kwargs["kwarg2"] = self.kwarg2 + return (self.__class__.__name__, [], kwargs) class ArgsKwargsOperation(TestOperation): @@ -70,9 +58,9 @@ class ArgsKwargsOperation(TestOperation): def deconstruct(self): kwargs = {} if self.kwarg1 is not None: - kwargs['kwarg1'] = self.kwarg1 + kwargs["kwarg1"] = self.kwarg1 if self.kwarg2 is not None: - kwargs['kwarg2'] = self.kwarg2 + kwargs["kwarg2"] = self.kwarg2 return ( self.__class__.__name__, [self.arg1, self.arg2], @@ -81,14 +69,10 @@ class ArgsKwargsOperation(TestOperation): class ExpandArgsOperation(TestOperation): - serialization_expand_args = ['arg'] + serialization_expand_args = ["arg"] def __init__(self, arg): self.arg = arg def deconstruct(self): - return ( - self.__class__.__name__, - [self.arg], - {} - ) + return (self.__class__.__name__, [self.arg], {}) |