-
Notifications
You must be signed in to change notification settings - Fork 573
SNOW-3865542: test/README omits details about \'host\' parameter (or tests wrongly require it) #2981
Open
Description
Python version
n/a
Operating system and processor architecture
n/a
Installed packages
n/a
What did you do?
1. Create `test/parameters.py` [as documented](https://github.com/snowflakedb/snowflake-connector-python/blob/main/test/README.md#running-tests). 2. Try to run the test: $ pytest -v test/integ/test_connection.py::test_basic /home/tim/code/snowflake-connector-python/venv310/lib/python3.12/site-packages/_pytest/config/__init__.py:331: PluggyTeardownRaisedWarning: A plugin raised an exception during an old-style hookwrapper teardown. Plugin: helpconfig, Hook: pytest_cmdline_parse ConftestImportFailure: KeyError: 'host' (from /home/tim/code/snowflake-connector-python/test/integ/conftest.py) For more information see https://pluggy.readthedocs.io/en/stable/api_reference.html#pluggy.PluggyTeardownRaisedWarning config = pluginmanager.hook.pytest_cmdline_parse( ImportError while loading conftest '/home/tim/code/snowflake-connector-python/test/integ/conftest.py'. test/integ/conftest.py:82: in <module> if not isinstance(CONNECTION_PARAMETERS["host"], str): E KeyError: 'host'
What did you expect to see?
Test runs.
It seems the example parameters.py in tests/test/README.md should have a 'host' key or else the tests should not require it.
Can you set logging to DEBUG and collect the logs?
n/a