forked from databricks/databricks-sql-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconftest.py
44 lines (30 loc) · 1.19 KB
/
conftest.py
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 benchmarking_host():
return os.getenv("BENCHMARKING_SERVER_HOSTNAME")
@pytest.fixture(scope="session")
def benchmarking_http_path():
return os.getenv("BENCHMARKING_HTTP_PATH")
@pytest.fixture(scope="session")
def benchmarking_access_token():
return os.getenv("BENCHMARKING_TOKEN")
@pytest.fixture(scope="session")
def benchfood_host():
return os.getenv("BENCHFOOD_SERVER_HOSTNAME")
@pytest.fixture(scope="session")
def benchfood_http_path():
return os.getenv("BENCHFOOD_HTTP_PATH")
@pytest.fixture(scope="session")
def benchfood_access_token():
return os.getenv("BENCHFOOD_TOKEN")
@pytest.fixture(scope="session", autouse=True)
def connection_details(benchmarking_host, benchmarking_http_path, benchmarking_access_token, benchfood_host, benchfood_http_path, benchfood_access_token):
return {
"benchmarking_host": benchmarking_host,
"benchmarking_http_path": benchmarking_http_path,
"benchmarking_access_token": benchmarking_access_token,
"benchfood_host": benchfood_host,
"benchfood_http_path": benchfood_http_path,
"benchfood_access_token": benchfood_access_token,
}