Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
Signed-off-by: eknath.baravkar <[email protected]>
  • Loading branch information
baravkareknath committed Oct 30, 2023
1 parent 1c126dc commit d910b95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions djangocms_picture/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ def get_alignment():
('left', _('Align left')),
('right', _('Align right')),
('center', _('Align center')),
('ltr', _('Left-to-Right')),
('rtl', _('Right-to-Left')),
('top', _('Top Aligned')),
('bottom', _('Bottom Aligned')),

)
)
return alignment
Expand Down
2 changes: 1 addition & 1 deletion tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def test_settings(self):
self.assertEqual(PICTURE_RATIO, 1.6180)
self.assertEqual(
get_alignment(),
(('left', 'Align left'), ('right', 'Align right'), ('center', 'Align center'),('ltr', ('Left-to-Right')),('rtl', ('Right-to-Left')),('top', ('Top Aligned')),('bottom', ('Bottom Aligned'))),
(('left', 'Align left'), ('right', 'Align right'), ('center', 'Align center')),
)

def test_picture_instance(self):
Expand Down

0 comments on commit d910b95

Please sign in to comment.