Common test resources for Data Catalog connectors
Project description
google-datacatalog-connectors-commons-test
Common test resources for Data Catalog connectors
Disclaimer: This is not an officially supported Google product.
Table of Contents
1. Installable file build process
1.1. Get the code
git clone https://github.com/GoogleCloudPlatform/datacatalog-connectors
cd google-datacatalog-connectors-commons-test
1.2. Virtualenv
Using virtualenv is optional, but strongly recommended.
1.2.1. Install Python 3.6
1.2.2. Create and activate a virtualenv
pip3 install --upgrade virtualenv
python3 -m virtualenv --python python3.6 env
source ./env/bin/activate
2. Developer environment
2.1. Install and run YAPF formatter
pip install --upgrade yapf
# Auto update files
yapf --in-place --recursive src tests
# Show diff
yapf --diff --recursive src tests
# Set up pre-commit hook
# From the root of your git project.
curl -o pre-commit.sh https://raw.githubusercontent.com/google/yapf/master/plugins/pre-commit.sh
chmod a+x pre-commit.sh
mv pre-commit.sh .git/hooks/pre-commit
2.2. Install and run Flake8 linter
pip install --upgrade flake8
flake8 src tests
2.3. Install the package in editable mode (i.e. setuptools “develop mode”)
pip install --editable .
2.4. Run the unit tests
python setup.py test
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file google-datacatalog-connectors-commons-test-0.7.2.tar.gz
.
File metadata
- Download URL: google-datacatalog-connectors-commons-test-0.7.2.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbadf20f74574185c348a2d52cb253009e0f3abf451821f0f05b6a281621bf93 |
|
MD5 | d58159d8555f6a115f39f998858f6182 |
|
BLAKE2b-256 | f545f22d46c8f33d3307620e10d5712a6a769a325ca87fe16874aa28824d7702 |
File details
Details for the file google_datacatalog_connectors_commons_test-0.7.2-py2.py3-none-any.whl
.
File metadata
- Download URL: google_datacatalog_connectors_commons_test-0.7.2-py2.py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21f8d0cb046bca5d835b0b724865fcd40d746b0fe6a9c051b4922475a1c6750f |
|
MD5 | 73fcd86ef6e0fcb567facfe86c650b33 |
|
BLAKE2b-256 | 2c39d13a3fcdc4d123a522ad12497ebb8281952c17212d2037a5f9a66a57975c |