Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
georgedorn committed Dec 9, 2019
1 parent 410664b commit 290623b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tastypie/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ def unsalt_token(token):

# compatability for force_text (deprecated) vs force_str (new)
try:
from django.utils.encoding import force_str
from django.utils.encoding import force_str # noqa
except ImportError:
from django.utils.encoding import force_text as force_str
from django.utils.encoding import force_text as force_str # noqa
1 change: 1 addition & 0 deletions tastypie/utils/dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import six


def dict_strip_unicode_keys(uni_dict):
"""
Converts a dict of unicode keys into a dict of ascii keys.
Expand Down
2 changes: 2 additions & 0 deletions tests/testcases.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from django.db import connections
from decorator import contextmanager


class TastyPieTestCase(TestCase):

@contextmanager
Expand All @@ -16,5 +17,6 @@ def withAssertNumQueriesLessThan(self, value, using='default', verbose=False):
msg = None
self.assertLess(context.final_queries, value, msg=msg)


class TestCaseWithFixture(TastyPieTestCase):
fixtures = ['test_data.json']

0 comments on commit 290623b

Please sign in to comment.