Skip to content

Commit

Permalink
Improvement according to C406 flake8 comprehension rule
Browse files Browse the repository at this point in the history
C406 Unnecessary (list/tuple) literal - rewrite as a dict literal.
  • Loading branch information
David Read committed Nov 8, 2019
1 parent 487c13e commit 9a13a4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/tests/legacy/lib/test_resource_search.py
Expand Up @@ -75,7 +75,7 @@ def test_02_search_url_2(self):
assert set([self.ab]) == urls, urls

def test_03_search_url_multiple_words(self):
fields = dict([['url', 'e f']])
fields = {'url': 'e f'}
urls = self.res_search(fields=fields)
assert_set_equal({self.ef}, urls)

Expand Down

0 comments on commit 9a13a4b

Please sign in to comment.