Skip to content

Clarify "Couldn't find cache key" warnings to make clear the root problem is failed execution #51

Description

@choldgraf

I'm trying to update a test in MyST-NB that requires re-running one of the notebooks. However, the test keeps failing with this error, which I think is independent of MyST-NB:

E       AssertionError: assert '\x1b[31mWARN...x1b[39;49;00m' == ''
E         - WARNING: Execution Failed: /tmp/pytest-of-choldgraf/pytest-304/test_complex_outputs_unrun0/source/complex_outputs_unrun.ipynb
E         - WARNING: Couldn't find cache key for notebook file source/complex_outputs_unrun.ipynb. Outputs will not be inserted.

I can't figure out how to get rid of this error, and it doesn't make sense to me why it'd show up because I think everything in those tests is generated at test-time (at least, the cache etc). Am I doing something wrong? Or is this a bug?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions