Skip to content

Commit dc9d887

Browse files
linting
1 parent 6271d01 commit dc9d887

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/call_method_parser/test_parse_call_method_name.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def test_string_with_single_quotes():
9393

9494
def test_string_with_double_quotes():
9595
expected = ("set_name", ('He said "hello"',), {})
96-
actual = parse_call_method_name('set_name(\'He said "hello"\')')
96+
actual = parse_call_method_name("set_name('He said \"hello\"')")
9797

9898
assert actual == expected
9999

@@ -122,4 +122,3 @@ def test_string_with_mixed_quotes_and_parentheses():
122122
actual = parse_call_method_name("set_name('test(with \\'quotes\\' and \"double\")')")
123123

124124
assert actual == expected
125-

tests/views/test_m2m_overwriting.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@ class M2MComponent(UnicornView):
1111

1212
def mount(self):
1313
if self.component_args:
14-
self.taste = Taste.objects.get(pk=self.component_args[0])
14+
self.taste = Taste.objects.get(pk=self.component_args[0])
1515

1616
def refresh(self):
1717
# usage: unicorn:poll="refresh"
1818
if self.taste:
1919
self.taste = Taste.objects.get(pk=self.taste.pk)
2020

21+
2122
@pytest.mark.django_db
2223
def test_m2m_overwriting(client):
2324
# Setup

0 commit comments

Comments
 (0)