FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
databricks-sql-python/conftest.py at sql-is-profiling · databricks/databricks-sql-python · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
databricks
/
databricks-sql-python
Public
Notifications
You must be signed in to change notification settings
Fork
147
Star
233
Code
Issues
100
Pull requests
78
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
databricks-sql-python
/
conftest.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
44 lines (30 loc) · 951 Bytes
Breadcrumbs
databricks-sql-python
/
conftest.py
Copy path
File metadata and controls
44 lines (30 loc) · 951 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import
os
import
pytest
@
pytest
.
fixture
(
scope
=
"session"
)
def
host
():
return
os
.
getenv
(
"DATABRICKS_SERVER_HOSTNAME"
)
@
pytest
.
fixture
(
scope
=
"session"
)
def
http_path
():
return
os
.
getenv
(
"DATABRICKS_HTTP_PATH"
)
@
pytest
.
fixture
(
scope
=
"session"
)
def
access_token
():
return
os
.
getenv
(
"DATABRICKS_TOKEN"
)
@
pytest
.
fixture
(
scope
=
"session"
)
def
ingestion_user
():
return
os
.
getenv
(
"DATABRICKS_USER"
)
@
pytest
.
fixture
(
scope
=
"session"
)
def
catalog
():
return
os
.
getenv
(
"DATABRICKS_CATALOG"
)
@
pytest
.
fixture
(
scope
=
"session"
)
def
schema
():
return
os
.
getenv
(
"DATABRICKS_SCHEMA"
,
"default"
)
@
pytest
.
fixture
(
scope
=
"session"
,
autouse
=
True
)
def
connection_details
(
host
,
http_path
,
access_token
,
ingestion_user
,
catalog
,
schema
):
return
{
"host"
:
host
,
"http_path"
:
http_path
,
"access_token"
:
access_token
,
"ingestion_user"
:
ingestion_user
,
"catalog"
:
catalog
,
"schema"
:
schema
,
}
Back
|
FazBrowse Home
|
New Git URL