Skip to content

Commit

Permalink
Fix context forwarding for integration test hook plugins (#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicoretti authored Dec 5, 2024
1 parent 2449410 commit 85bc0e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions doc/changes/unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
## 🐞 Fixed

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

## 📚 Documentation

Expand Down
4 changes: 2 additions & 2 deletions exasol/toolbox/nox/_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ def _integration_tests(
pm = NoxTasks.plugin_manager(config)

# run pre integration test plugins
pm.hook.pre_integration_tests_hook(session=session, config=config, context={})
pm.hook.pre_integration_tests_hook(session=session, config=config, context=context)

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

# run post integration test plugins
pm.hook.post_integration_tests_hook(session=session, config=config, context={})
pm.hook.post_integration_tests_hook(session=session, config=config, context=context)


def _pass(
Expand Down

0 comments on commit 85bc0e7

Please sign in to comment.