Skip to content

Commit a310294

Browse files
committed
Fix context forwarding for integration test hook plugins
1 parent 38905d2 commit a310294

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

doc/changes/unreleased.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
## 🐞 Fixed
1010

1111
* Fixed syntax error in the `check.yml` template which resulted in an invalid workflow file
12+
* Fixed context forwarding to plugins hooking into `pre` and `post` integration test hooks
13+
- `pre_integration_tests_hook(self, session, config, context)`
14+
- `post_integration_tests_hook(self, session, config, context)`
1215

1316
## 📚 Documentation
1417

exasol/toolbox/nox/_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ def _integration_tests(
4444
pm = NoxTasks.plugin_manager(config)
4545

4646
# run pre integration test plugins
47-
pm.hook.pre_integration_tests_hook(session=session, config=config, context={})
47+
pm.hook.pre_integration_tests_hook(session=session, config=config, context=context)
4848

4949
# run
5050
command = _test_command(config.root / "test" / "integration", config, context)
5151
session.run(*command)
5252

5353
# run post integration test plugins
54-
pm.hook.post_integration_tests_hook(session=session, config=config, context={})
54+
pm.hook.post_integration_tests_hook(session=session, config=config, context=context)
5555

5656

5757
def _pass(

0 commit comments

Comments
 (0)