From bc5ba00865d5603c187048218b93603c17e70647 Mon Sep 17 00:00:00 2001 From: Ahdra Merali <90615669+AhdraMeraliQB@users.noreply.github.com> Date: Tue, 2 Jan 2024 18:30:36 +0000 Subject: [PATCH] Upfate template starter logging (#3463) Signed-off-by: Ahdra Merali --- .../{{ cookiecutter.repo_name }}/conf/{base => }/logging.yml | 0 tests/framework/cli/conftest.py | 2 +- tests/framework/session/test_session.py | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename features/steps/test_starter/{{ cookiecutter.repo_name }}/conf/{base => }/logging.yml (100%) diff --git a/features/steps/test_starter/{{ cookiecutter.repo_name }}/conf/base/logging.yml b/features/steps/test_starter/{{ cookiecutter.repo_name }}/conf/logging.yml similarity index 100% rename from features/steps/test_starter/{{ cookiecutter.repo_name }}/conf/base/logging.yml rename to features/steps/test_starter/{{ cookiecutter.repo_name }}/conf/logging.yml diff --git a/tests/framework/cli/conftest.py b/tests/framework/cli/conftest.py index 7aae7ff4a2..d4639e42f3 100644 --- a/tests/framework/cli/conftest.py +++ b/tests/framework/cli/conftest.py @@ -125,7 +125,7 @@ def fake_project_cli( ) # Delete the project logging.yml, which leaves behind info.log and error.log files. # This leaves logging config as the framework default. - (fake_repo_path / "conf" / "base" / "logging.yml").unlink() + (fake_repo_path / "conf" / "logging.yml").unlink() # NOTE: Here we load a couple of modules, as they would be imported in # the code and tests. diff --git a/tests/framework/session/test_session.py b/tests/framework/session/test_session.py index 5806783dcd..a04deb6b30 100644 --- a/tests/framework/session/test_session.py +++ b/tests/framework/session/test_session.py @@ -938,7 +938,7 @@ def fake_project_with_logging_file_handler(fake_project): "version": 1, "handlers": {"info_file_handler": {"filename": "logs/info.log"}}, } - logging_yml = fake_project / "conf" / "base" / "logging.yml" + logging_yml = fake_project / "conf" / "logging.yml" logging_yml.write_text(yaml.dump(logging_config)) return fake_project