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 1
1
import os
2
+ from unittest import mock
3
+
2
4
import pytest
3
5
import ydb
4
6
import time
5
7
6
8
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
+
7
15
@pytest .fixture (scope = "module" )
8
16
def docker_compose_file (pytestconfig ):
9
17
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
8
8
usedevelop = True
9
9
install_command = pip install {opts} {packages}
10
10
setenv =
11
- YDB_ANONYMOUS_CREDENTIALS = 1
12
11
PYTHONPATH = {env:PYTHONPATH}{:}{toxinidir}
13
12
deps =
14
13
-r{toxinidir}/test-requirements.txt
You can’t perform that action at this time.
0 commit comments