aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/bokeh/files/bokeh-2.2.1-conftest_py.patch')
-rw-r--r--dev-python/bokeh/files/bokeh-2.2.1-conftest_py.patch56
1 files changed, 0 insertions, 56 deletions
diff --git a/dev-python/bokeh/files/bokeh-2.2.1-conftest_py.patch b/dev-python/bokeh/files/bokeh-2.2.1-conftest_py.patch
deleted file mode 100644
index 5dfb43c8e..000000000
--- a/dev-python/bokeh/files/bokeh-2.2.1-conftest_py.patch
+++ /dev/null
@@ -1,56 +0,0 @@
-diff --git a/conftest.py b/conftest.py
-new file mode 100644
-index 0000000..795da89
---- /dev/null
-+++ b/conftest.py
-@@ -0,0 +1,50 @@
-+#-----------------------------------------------------------------------------
-+# Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributors.
-+# All rights reserved.
-+#
-+# The full license is in the file LICENSE.txt, distributed with this software.
-+#-----------------------------------------------------------------------------
-+
-+pytest_plugins = (
-+ "bokeh._testing.plugins.ipython",
-+ "bokeh._testing.plugins.managed_server_loop",
-+ "bokeh._testing.plugins.pandas",
-+)
-+
-+# Standard library imports
-+from inspect import iscoroutinefunction
-+from typing import List
-+
-+# External imports
-+import _pytest
-+import pytest
-+
-+
-+def pytest_collection_modifyitems(items: List[_pytest.nodes.Item]) -> None:
-+ for item in items:
-+ if iscoroutinefunction(item.obj):
-+ item.add_marker(pytest.mark.asyncio)
-+
-+# Unfortunately these seem to all need to be centrally defined at the top level
-+def pytest_addoption(parser: _pytest.config.argparsing.Parser) -> None:
-+
-+ # plugins/selenium
-+ parser.addoption(
-+ "--driver", choices=('chrome', 'firefox', 'safari'), default='chrome', help='webdriver implementation')
-+
-+ # plugins/bokeh_server
-+ parser.addoption(
-+ "--bokeh-port", dest="bokeh_port", type=int, default=5006, help="port on which Bokeh server resides"
-+ )
-+
-+ # plugins/jupyter_notebook
-+ parser.addoption(
-+ "--notebook-port", type=int, default=6007, help="port on which Jupyter Notebook server resides"
-+ )
-+
-+ parser.addoption(
-+ "--examples-log-file", dest="log_file", metavar="path", action="store", default='examples.log', help="where to write the complete log"
-+ )
-+ parser.addoption(
-+ "--no-js", action="store_true", default=False,
-+ help="only run python code and skip js")