Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
goanpeca committed Jan 27, 2020
1 parent 072621d commit b97b034
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion colosseum/declaration.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def validated_property(name, choices, initial):

# Check the value attribute is a callable
if not callable(value_attr):
raise ValueError('Initial value "%s" `value` attribute is not callable!' % initial)
raise ValueError('Initial value "%s" attribute is not callable!' % initial)

except AttributeError:
raise ValueError('Initial value "%s" does not have a value attribute!' % initial)
Expand Down Expand Up @@ -213,6 +213,7 @@ def __init__(self, **style):
# 9. Visual formatting model #########################################
# 9.2.4 The display property
display = validated_property('display', choices=DISPLAY_CHOICES, initial=INLINE)

# 9.3 Positioning schemes
position = validated_property('position', choices=POSITION_CHOICES, initial=STATIC)

Expand All @@ -224,6 +225,7 @@ def __init__(self, **style):

# 9.5.1 Positioning the float
float = validated_property('float', choices=FLOAT_CHOICES, initial=None)

# 9.5.2 Controlling flow next to floats
clear = validated_property('clear', choices=CLEAR_CHOICES, initial=None)

Expand Down
1 change: 0 additions & 1 deletion tests/test_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
is_uri)



class NumericTests(TestCase):

def test_integer(self):
Expand Down
1 change: 1 addition & 0 deletions tests/test_wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def test_invalid_arg_number(self):
with self.assertRaises(TypeError):
BorderSpacing(1, 2, 3)


class ImmutableListTests(TestCase):

def test_immutable_list_initial(self):
Expand Down

0 comments on commit b97b034

Please sign in to comment.