@@ -186,12 +186,12 @@ def test_check_js_errors_multiple(self):
186
186
#
187
187
msg = str (exc .value )
188
188
expected = textwrap .dedent (
189
- """
189
+ f """
190
190
JS errors found: 2
191
191
Error: error 1
192
- at https://fake_server /mytest.html:.*
192
+ at { self . http_server_addr } /mytest.html:.*
193
193
Error: error 2
194
- at https://fake_server /mytest.html:.*
194
+ at { self . http_server_addr } /mytest.html:.*
195
195
"""
196
196
).strip ()
197
197
assert re .search (expected , msg )
@@ -217,12 +217,12 @@ def test_check_js_errors_some_expected_but_others_not(self):
217
217
#
218
218
msg = str (exc .value )
219
219
expected = textwrap .dedent (
220
- """
220
+ f """
221
221
JS errors found: 2
222
222
Error: NOT expected 2
223
- at https://fake_server /mytest.html:.*
223
+ at { self . http_server_addr } /mytest.html:.*
224
224
Error: NOT expected 4
225
- at https://fake_server /mytest.html:.*
225
+ at { self . http_server_addr } /mytest.html:.*
226
226
"""
227
227
).strip ()
228
228
assert re .search (expected , msg )
@@ -243,15 +243,15 @@ def test_check_js_errors_expected_not_found_but_other_errors(self):
243
243
#
244
244
msg = str (exc .value )
245
245
expected = textwrap .dedent (
246
- """
246
+ f """
247
247
The following JS errors were expected but could not be found:
248
248
- this is not going to be found
249
249
---
250
250
The following JS errors were raised but not expected:
251
251
Error: error 1
252
- at https://fake_server /mytest.html:.*
252
+ at { self . http_server_addr } /mytest.html:.*
253
253
Error: error 2
254
- at https://fake_server /mytest.html:.*
254
+ at { self . http_server_addr } /mytest.html:.*
255
255
"""
256
256
).strip ()
257
257
assert re .search (expected , msg )
0 commit comments