-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Description
I'm getting a DeprecationWarning when running tests for a dash app. A complete minimal working example would be
minimal test app
# usage_tmp.py
import dash
from dash import html
app = dash.Dash(__name__)
app.layout = html.Div([html.H1("test")])
if __name__ == "__main__":
app.run_server(debug=True)minimal test script
# tests\test_usage_tmp.py
from dash.testing.application_runners import import_app
# Run with pytest -k testing123
def test_testing123(dash_duo):
app = import_app("usage_tmp")Example output
(myproj) PS C:\Users\USER\repos\myproj> python -m pytest -k testing123
Test session starts (platform: win32, Python 3.8.6, pytest 6.2.5, pytest-sugar 0.9.4)
cachedir: .pytest_cache
rootdir: C:\Users\USER\repos\myproj, configfile: pytest.ini, testpaths: tests/
plugins: dash-2.0.0, flaky-3.7.0, mock-3.6.1, sugar-0.9.4
collecting ...
tests\test_usage_tmp.py::test_testing123 ✓ 100% ██████████
========================================================= warnings summary ==========================================================
tests/test_usage_tmp.py::test_testing123
C:\Python\venvs\myproj\lib\site-packages\selenium\webdriver\chrome\webdriver.py:70: DeprecationWarning: desired_capabilities
has been deprecated, please pass in a Service object
super(WebDriver, self).__init__(DesiredCapabilities.CHROME['browserName'], "goog",
-- Docs: https://docs.pytest.org/en/stable/warnings.html
Versions
- dash 2.0.0
- selenium 4.1.0
KyleKing and cheshrkat
Metadata
Metadata
Assignees
Labels
No labels