We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80c6c9e commit 20b018eCopy full SHA for 20b018e
tests/conftest.py
@@ -15,8 +15,8 @@ def env():
15
@pytest.fixture(scope="session", autouse=True)
16
def db(env) -> TiDBClient:
17
return TiDBClient.connect(
18
- host=os.getenv("TIDB_HOST"),
+ host=os.getenv("TIDB_HOST", "localhost"),
19
port=int(os.getenv("TIDB_PORT", "4000")),
20
- username=os.getenv("TIDB_USERNAME"),
21
- password=os.getenv("TIDB_PASSWORD"),
+ username=os.getenv("TIDB_USERNAME", "root"),
+ password=os.getenv("TIDB_PASSWORD", ""),
22
)
0 commit comments