File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 11import os
2+ from unittest import mock
3+
24import pytest
35import ydb
46import time
57
68
9+ @pytest .fixture (autouse = True , scope = "session" )
10+ def mock_settings_env_vars ():
11+ with mock .patch .dict (os .environ , {"YDB_ANONYMOUS_CREDENTIALS" : "1" }):
12+ yield
13+
14+
715@pytest .fixture (scope = "module" )
816def docker_compose_file (pytestconfig ):
917 return os .path .join (str (pytestconfig .rootdir ), "docker-compose.yml" )
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ ignore_basepython_conflict = true
88usedevelop = True
99install_command = pip install {opts} {packages}
1010setenv =
11- YDB_ANONYMOUS_CREDENTIALS = 1
1211 PYTHONPATH = {env:PYTHONPATH}{:}{toxinidir}
1312deps =
1413 -r{toxinidir}/test-requirements.txt
You can’t perform that action at this time.
0 commit comments