Skip to content

Commit 4aed567

Browse files
committed
test config added in projects
1 parent edcdcd4 commit 4aed567

File tree

4 files changed

+21
-9
lines changed

4 files changed

+21
-9
lines changed

pysql-connector/pyproject.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ exclude = ['ttypes\.py$', 'TCLIService\.py$']
5757
[tool.black]
5858
exclude = '/(\.eggs|\.git|\.hg|\.mypy_cache|\.nox|\.tox|\.venv|\.svn|_build|buck-out|build|dist|thrift_api)/'
5959

60-
#[tool.pytest.ini_options]
61-
#markers = {"reviewed" = "Test case has been reviewed by Databricks"}
62-
#minversion = "6.0"
63-
#log_cli = "false"
64-
#log_cli_level = "INFO"
65-
#testpaths = ["tests", "src/databricks/sqlalchemy/test_local"]
66-
#env_files = ["test.env"]
60+
[tool.pytest.ini_options]
61+
markers = {"reviewed" = "Test case has been reviewed by Databricks"}
62+
minversion = "6.0"
63+
log_cli = "false"
64+
log_cli_level = "INFO"
65+
testpaths = ["tests"]
66+
env_files = ["test.env"]

sqlalchemy-plugin/pyproject.toml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,12 @@ ignore_missing_imports = "true"
3535
exclude = ['ttypes\.py$', 'TCLIService\.py$']
3636

3737
[tool.black]
38-
exclude = '/(\.eggs|\.git|\.hg|\.mypy_cache|\.nox|\.tox|\.venv|\.svn|_build|buck-out|build|dist|thrift_api)/'
38+
exclude = '/(\.eggs|\.git|\.hg|\.mypy_cache|\.nox|\.tox|\.venv|\.svn|_build|buck-out|build|dist|thrift_api)/'
39+
40+
[tool.pytest.ini_options]
41+
markers = {"reviewed" = "Test case has been reviewed by Databricks"}
42+
minversion = "6.0"
43+
log_cli = "false"
44+
log_cli_level = "INFO"
45+
testpaths = ["src/sqlalchemy_db/test_local"]
46+
env_files = ["test.env"]

sqlalchemy-plugin/src/sqlalchemy_db/README.sqlalchemy.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ A SQLAlchemy 1.4 compatible dialect was first released in connector [version 2.4
1010

1111
To install the dialect and its dependencies:
1212

13+
```shell
14+
pip install databricks-sqlalchemy-dialect
15+
```
16+
or
1317
```shell
1418
pip install databricks-sql-connector[sqlalchemy]
1519
```

sqlalchemy-plugin/src/sqlalchemy_db/README.tests.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ We maintain `_extra.py` with test cases that depend on SQLAlchemy's reusable dia
2323

2424
```
2525
poetry shell
26-
cd src/databricks/sqlalchemy/test
26+
cd sqlalchemy-plugin/src/sqlalchemy_db/test
2727
python -m pytest test_suite.py --dburi \
2828
"databricks://token:$access_token@$host?http_path=$http_path&catalog=$catalog&schema=$schema -c ../setup.cfg"
2929
```

0 commit comments

Comments
 (0)