GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — snowflake-connector-python/test at master · byule/snowflake-connector-python

Expand file tree

/

test

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

test

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
data
data
 
 
.gitignore
.gitignore
 
 
README.rst
README.rst
 
 
conftest.py
conftest.py
 
 
test_arrow_pandas.py
test_arrow_pandas.py
 
 
test_arrow_result.py
test_arrow_result.py
 
 
test_autocommit.py
test_autocommit.py
 
 
test_bindings.py
test_bindings.py
 
 
test_boolean.py
test_boolean.py
 
 
test_client_session_keep_alive.py
test_client_session_keep_alive.py
 
 
test_concurrent_create_objects.py
test_concurrent_create_objects.py
 
 
test_concurrent_insert.py
test_concurrent_insert.py
 
 
test_connection.py
test_connection.py
 
 
test_connection_manual.py
test_connection_manual.py
 
 
test_converter.py
test_converter.py
 
 
test_converter_more_timestamp.py
test_converter_more_timestamp.py
 
 
test_converter_null.py
test_converter_null.py
 
 
test_cursor.py
test_cursor.py
 
 
test_cursor_binding.py
test_cursor_binding.py
 
 
test_cursor_context_manager.py
test_cursor_context_manager.py
 
 
test_dataintegrity.py
test_dataintegrity.py
 
 
test_daylight_savings.py
test_daylight_savings.py
 
 
test_dbapi.py
test_dbapi.py
 
 
test_errors.py
test_errors.py
 
 
test_execute_multi_statements.py
test_execute_multi_statements.py
 
 
test_incident.py
test_incident.py
 
 
test_key_pair_authentication.py
test_key_pair_authentication.py
 
 
test_large_put.py
test_large_put.py
 
 
test_large_result_set.py
test_large_result_set.py
 
 
test_load_unload.py
test_load_unload.py
 
 
test_network.py
test_network.py
 
 
test_numpy_binding.py
test_numpy_binding.py
 
 
test_ocsp.py
test_ocsp.py
 
 
test_pickle_timestamp_tz.py
test_pickle_timestamp_tz.py
 
 
test_put_get.py
test_put_get.py
 
 
test_put_get_medium.py
test_put_get_medium.py
 
 
test_put_get_snow_4525.py
test_put_get_snow_4525.py
 
 
test_put_get_user_stage.py
test_put_get_user_stage.py
 
 
test_put_get_with_aws_token.py
test_put_get_with_aws_token.py
 
 
test_put_get_with_azure_token.py
test_put_get_with_azure_token.py
 
 
test_put_windows_path.py
test_put_windows_path.py
 
 
test_qmark.py
test_qmark.py
 
 
test_query_cancelling.py
test_query_cancelling.py
 
 
test_results.py
test_results.py
 
 
test_reuse_cursor.py
test_reuse_cursor.py
 
 
test_session_parameters.py
test_session_parameters.py
 
 
test_snowsql_timestamp_format.py
test_snowsql_timestamp_format.py
 
 
test_statement_parameter_binding.py
test_statement_parameter_binding.py
 
 
test_transaction.py
test_transaction.py
 
 
test_unit_arrow_chunk_iterator.py
test_unit_arrow_chunk_iterator.py
 
 
test_unit_auth.py
test_unit_auth.py
 
 
test_unit_auth_oauth.py
test_unit_auth_oauth.py
 
 
test_unit_auth_okta.py
test_unit_auth_okta.py
 
 
test_unit_auth_webbrowser.py
test_unit_auth_webbrowser.py
 
 
test_unit_binaryformat.py
test_unit_binaryformat.py
 
 
test_unit_connection.py
test_unit_connection.py
 
 
test_unit_construct_hostname.py
test_unit_construct_hostname.py
 
 
test_unit_converter.py
test_unit_converter.py
 
 
test_unit_datetime.py
test_unit_datetime.py
 
 
test_unit_encryption_util.py
test_unit_encryption_util.py
 
 
test_unit_ocsp.py
test_unit_ocsp.py
 
 
test_unit_parse_account.py
test_unit_parse_account.py
 
 
test_unit_proxies.py
test_unit_proxies.py
 
 
test_unit_put_get.py
test_unit_put_get.py
 
 
test_unit_renew_session.py
test_unit_renew_session.py
 
 
test_unit_retry_network.py
test_unit_retry_network.py
 
 
test_unit_s3_util.py
test_unit_s3_util.py
 
 
test_unit_secret_detector.py
test_unit_secret_detector.py
 
 
test_unit_split_statement.py
test_unit_split_statement.py
 
 
test_unit_telemetry.py
test_unit_telemetry.py
 
 
test_unit_telemetry_oob.py
test_unit_telemetry_oob.py
 
 

README.rst

Outline

Building and Testing Snowflake Connector for Python

Building

Install Python 2.7.9 or higher, or 3.5.0 or higher. Clone the Snowflake Connector for Python repository, then run the following command to create a wheel package:

git clone [email protected]:snowflakedb/snowflake-connector-python.git
cd snowflake-connector-python
pyvenv /tmp/test_snowflake_connector_python
source /tmp/test_snowflake_connector_python/bin/activate
pip install -U pip setuptools wheel
python setup.py bdist_wheel

Find the snowflake_connector_python*.whl package in the ./dist directory.

Testing

Create a virtualenv, with parameters.py in a test directory.

pyvenv /tmp/test_snowflake_connector_python
source /tmp/test_snowflake_connector_python/bin/activate
pip install Cython pytest numpy pandas mock
pip install dist/snowflake_connector_python*.whl
vim test/parameters.py

In the parameters.py file, include the connection information in a Python dictionary.

CONNECTION_PARAMETERS = {
    'account':  'testaccount',
    'user':     'user1',
    'password': 'testpasswd',
    'schema':   'testschema',
    'database': 'testdb',
}

Run the test:

py.test test
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.