Closed IgStep closed 1 year ago
@IgStep It's expected, since core python does not have 'attachment' parameter on logging functions. You can setup your logging through custom handler as in example here, to avoid such exception: https://github.com/reportportal/agent-python-pytest#examples
Description "Unexpected keyword argument 'attachment'" error is thrown when running tests with no:pytest_reportportal option.
Steps to Reproduce
Expected behavior Test function passed without reporting results to Report Portal instance.
Actual behavior Test function failed because of TypeError: Logger._log() got an unexpected keyword argument 'attachment'
Package versions Python 3.10.1, pytest-reportportal 5.1.5, pytest 7.2.2
Additional context If tests are run just without --reportportal option, behavior the same.