Skip to content

Commit

Permalink
Fix QA issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ellmetha committed Oct 17, 2023
1 parent 060a6a1 commit 1464f02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example_project/main/common/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class MenuItemMixin(object):
"""
def get_context_data(self, **kwargs):
context = super(MenuItemMixin, self).get_context_data(**kwargs)
vattrs = inspect.getmembers(self, lambda a: not(inspect.isroutine(a)))
vattrs = inspect.getmembers(self, lambda a: not (inspect.isroutine(a)))
menu_kwargs = dict(a for a in vattrs if a[0].startswith('menu_'))
context.update(menu_kwargs)
return context
2 changes: 1 addition & 1 deletion tests/unit/models/test_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class Meta:
form = TestableForm()

# Check
assert type(form.fields['content'].widget) == forms.Textarea
assert type(form.fields['content'].widget) is forms.Textarea

def test_sets_the_markup_widget_to_a_textarea_if_it_is_none(self):
# Setup
Expand Down

0 comments on commit 1464f02

Please sign in to comment.