@@ -30,7 +30,7 @@ def update_output(value):
3030
3131 dash_duo .start_server (app )
3232 dash_duo .wait_for_text_to_equal ("#output" , f"You typed: { input_value } " )
33- dash_duo .find_element ("#input" ). clear ( )
33+ dash_duo .clear_input ( dash_duo . find_element ("#input" ))
3434 dash_duo .find_element ("#input" ).send_keys (f"{ backend .title ()} Test" )
3535 dash_duo .wait_for_text_to_equal ("#output" , f"You typed: { backend .title ()} Test" )
3636 assert dash_duo .get_logs () == []
@@ -93,7 +93,7 @@ def get_error_html(dash_duo, index):
9393 "dev_tools_prune_errors" : False ,
9494 "reload" : False ,
9595 },
96- "fastapi .py" ,
96+ "_fastapi .py" ,
9797 ),
9898 (
9999 "quart" ,
@@ -104,7 +104,7 @@ def get_error_html(dash_duo, index):
104104 "dev_tools_hot_reload" : False ,
105105 "dev_tools_prune_errors" : False ,
106106 },
107- "quart .py" ,
107+ "_quart .py" ,
108108 ),
109109 ],
110110)
@@ -131,7 +131,7 @@ def error_callback(n):
131131 error0 = get_error_html (dash_duo , 0 )
132132 assert "in error_callback" in error0
133133 assert "ZeroDivisionError" in error0
134- assert "backend " in error0 and error_msg in error0
134+ assert "backends/ " in error0 and error_msg in error0
135135
136136
137137@pytest .mark .parametrize (
@@ -173,7 +173,7 @@ def error_callback(n):
173173 error0 = get_error_html (dash_duo , 0 )
174174 assert "in error_callback" in error0
175175 assert "ZeroDivisionError" in error0
176- assert "dash/backend " not in error0 and error_msg not in error0
176+ assert "dash/backends/ " not in error0 and error_msg not in error0
177177
178178
179179@pytest .mark .parametrize (
@@ -209,7 +209,7 @@ def update_output_bg(value):
209209
210210 dash_duo .start_server (app )
211211 dash_duo .wait_for_text_to_equal ("#output" , f"Background typed: { input_value } " )
212- dash_duo .find_element ("#input" ). clear ( )
212+ dash_duo .clear_input ( dash_duo . find_element ("#input" ))
213213 dash_duo .find_element ("#input" ).send_keys (f"{ backend .title ()} BG Test" )
214214 dash_duo .wait_for_text_to_equal (
215215 "#output" , f"Background typed: { backend .title ()} BG Test"
0 commit comments