Skip to content

Commit c8608f0

Browse files
Improve conftest.py docstring clarity
1 parent f5b18b6 commit c8608f0

File tree

4 files changed

+13
-12
lines changed
  • acceptance/bundle/templates/default-python
  • libs/template/templates/default/template/{{.project_name}}/tests

4 files changed

+13
-12
lines changed

acceptance/bundle/templates/default-python/classic/output/my_default_python/tests/conftest.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
"""This file configures pytest.
2-
3-
This file can be used for tests in any place in this project.
4-
"""
1+
"""This file configures pytest, making sure Databricks Connect is initialized and test fixtures are available."""
52

63
import os, sys, pathlib
74
from contextlib import contextmanager

acceptance/bundle/templates/default-python/serverless-customcatalog/output.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,13 @@ To get started, refer to the project README.md file and the documentation at htt
6969
+ "defaultValue": "customcatalog",
7070
"label": "Catalog",
7171
"name": "catalog",
72+
--- [TESTROOT]/bundle/templates/default-python/serverless-customcatalog/../serverless/output/my_default_python/tests/conftest.py
73+
+++ output/my_default_python/tests/conftest.py
74+
@@ -1,6 +1,3 @@
75+
-"""This file configures pytest.
76+
-
77+
-Configures Databricks Connect and provides test fixtures.
78+
-"""
79+
+"""This file configures pytest, making sure Databricks Connect is initialized and test fixtures are available."""
80+
81+
import os, sys, pathlib

acceptance/bundle/templates/default-python/serverless/output/my_default_python/tests/conftest.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
"""This file configures pytest.
2-
3-
This file can be used for tests in any place in this project.
4-
"""
1+
"""This file configures pytest, making sure Databricks Connect is initialized and test fixtures are available."""
52

63
import os, sys, pathlib
74
from contextlib import contextmanager

libs/template/templates/default/template/{{.project_name}}/tests/conftest.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
"""This file configures pytest.
2-
3-
This file can be used for tests in any place in this project.
4-
"""
1+
"""This file configures pytest, making sure Databricks Connect is initialized and test fixtures are available."""
52

63
import os, sys, pathlib
74
from contextlib import contextmanager

0 commit comments

Comments
 (0)