Skip to content

Passing -Werror to pytest --nbmake has no effect #104

@garrison

Description

@garrison

Describe the bug
Passing -Werror to pytest --nbmake has no effect. It should, instead, cause the tests to fail if the code in a notebook causes a warning.

To Reproduce
Steps to reproduce the behavior:

  1. Create a notebook which emits a warning.
  2. Run it using pytest --nbmake --Werror **/*ipynb

Expected behavior
I expect tests to fail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions