Skip to content

Commit b6621d3

Browse files
committed
fix pytest syntax
1 parent 701f04b commit b6621d3

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

tests/test_app/tests/test_components.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ def test_url_router(self):
628628
path.get_attribute("data-path"),
629629
)
630630
string = new_page.query_selector("#router-string")
631-
self.assertEquals("Path 12", string.text_content())
631+
self.assertEqual("Path 12", string.text_content())
632632

633633
finally:
634634
new_page.close()

tests/test_app/tests/test_regex.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -99,25 +99,25 @@ def test_comment_regex(self):
9999
self.assertNotRegex(r'{% component "my.component" %}', COMMENT_REGEX)
100100

101101
# Components surrounded by comments
102-
self.assertEquals(
102+
self.assertEqual(
103103
COMMENT_REGEX.sub(
104104
"", r'{% component "my.component" %} <!-- comment -->'
105105
).strip(),
106106
'{% component "my.component" %}',
107107
)
108-
self.assertEquals(
108+
self.assertEqual(
109109
COMMENT_REGEX.sub(
110110
"", r'<!-- comment --> {% component "my.component" %}'
111111
).strip(),
112112
'{% component "my.component" %}',
113113
)
114-
self.assertEquals(
114+
self.assertEqual(
115115
COMMENT_REGEX.sub(
116116
"", r'<!-- comment --> {% component "my.component" %} <!-- comment -->'
117117
).strip(),
118118
'{% component "my.component" %}',
119119
)
120-
self.assertEquals(
120+
self.assertEqual(
121121
COMMENT_REGEX.sub(
122122
"",
123123
r"""<!-- comment
@@ -130,11 +130,11 @@ def test_comment_regex(self):
130130
)
131131

132132
# Components surrounded by comments
133-
self.assertEquals(
133+
self.assertEqual(
134134
COMMENT_REGEX.sub("", r'<!-- {% component "my.component" %} -->'),
135135
"",
136136
)
137-
self.assertEquals(
137+
self.assertEqual(
138138
COMMENT_REGEX.sub(
139139
"",
140140
r"""<!--

0 commit comments

Comments
 (0)