Closed ThibaultFy closed 1 year ago
I have some errors when running the tests locally (MacOS). i.e:
FAILED tests/test_nb_run.py::TestNotebookRun::test_when_mock_then_succeeds - assert NotebookError(summary='\x1b[0;31mAssertionErr...
FAILED tests/test_nb_run.py::TestNotebookRun::test_when_post_cell_execute_then_succeeds - AssertionError: assert NotebookError(su...
FAILED tests/test_nb_run.py::TestNotebookRun::test_when_post_cell_execute_then_command_fails - Failed: DID NOT RAISE <class 'Exce...
FAILED tests/test_nb_run.py::TestNotebookRun::test_when_import_error_then_fails - TypeError: __init__() got an unexpected keyword...
FAILED tests/test_pytest_plugin.py::test_when_parallel_passing_nbs_then_ok - AssertionError: assert <ExitCode.USAGE_ERROR: 4> == ...
FAILED tests/test_pytest_plugin.py::test_when_no_import_errs_then_pass - AssertionError: assert <ExitCode.USAGE_ERROR: 4> == <Exi...
FAILED tests/test_pytest_plugin.py::test_when_not_json_then_correct_err_msg - assert 'NBMAKE INTERNAL ERROR' not in 'NBMAKE INTE....
This seems unrelated to Pydantic. Do I miss some configuration ?
Linked issue: https://github.com/treebeardtech/nbmake/issues/107
thanks for this @ThibaultFy! The CI pipeline is a bit rusty but we should definitely get this issue unblocked.
Hi @ThibaultFy I have just removed our minimal pydantic dependency in v1.4.3 -- thanks for raising this!
Run the pydantic script
bump-pydantic
to allow the migration to pydantic 2.0.*