8000 Fix running LS for tests in the new in_memory_localstack plugin (#9150) · codeperl/localstack@31a612e · GitHub
[go: up one dir, main page]

Skip to content

Commit 31a612e

Browse files
authored
Fix running LS for tests in the new in_memory_localstack plugin (localstack#9150)
1 parent 0cdaf55 commit 31a612e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

localstack/testing/pytest/in_memory_localstack.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ def pytest_configure(config):
2525
from localstack.constants import ENV_INTERNAL_TEST_RUN
2626

2727
LOG = logging.getLogger(__name__)
28+
LOG.info("Pytest plugin for in-memory-localstack session loaded.")
2829

2930
if localstack_config.is_collect_metrics_mode():
3031
pytest_plugins = "localstack.testing.pytest.metric_collection"
@@ -42,7 +43,7 @@ def pytest_addoption(parser: Parser, pluginmanager: PytestPluginManager):
4243

4344

4445
@pytest.hookimpl(tryfirst=True)
45-
def pytest_sessionstart(session: Session):
46+
def pytest_runtestloop(session: Session):
4647
if not session.config.option.start_localstack:
4748
return
4849

0 commit comments

Comments
 (0)
0