Skip to content

Navigation Menu

Sign in
Sign up

SNOW-3865542: test/README omits details about \'host\' parameter (or tests wrongly require it) #2981

Open
Labels
bug status-triage_doneInitial triage done, will be further handled by the driver team

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bug status-triage_doneInitial triage done, will be further handled by the driver team

Type

No type

Projects

No projects

Milestone

No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    AltStyle によって変換されたページ (->オリジナル) /