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 0ab7feb commit 1beba4bCopy full SHA for 1beba4b
pytest_services/mysql.py
@@ -12,10 +12,12 @@
12
13
14
@pytest.fixture(scope='session')
15
-def mysql_defaults_file(run_services, mysql_data_dir, memory_temp_dir):
+def mysql_defaults_file(
16
+ run_services, tmp_path_factory, memory_temp_dir, request):
17
"""MySQL defaults file."""
18
if run_services:
- defaults_path = os.path.join(mysql_data_dir, 'defaults.cnf')
19
+ cfg = tmp_path_factory.mktemp(request.session.name)
20
+ defaults_path = str(cfg / 'defaults.cnf')
21
22
with open(defaults_path, 'w+') as fd:
23
fd.write("""
0 commit comments