Skip to content

Commit 85bc0e7

Browse files
authored
Fix context forwarding for integration test hook plugins (#302)
1 parent 2449410 commit 85bc0e7

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
@@ -11,6 +11,9 @@
1111
## 🐞 Fixed
1212

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

1518
## 📚 Documentation
1619

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)