Skip to content

Commit

Permalink
adds testing shell
Browse files Browse the repository at this point in the history
  • Loading branch information
edublancas committed Jul 12, 2023
1 parent 8354734 commit 88fff1a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,19 @@ def clean_conns():
yield


# if we enable it, we'll have to update tests!
# because they expect the error not to be raised
class TestingShell(InteractiveShell):
def run_cell(self, *args, **kwargs):
result = super().run_cell(*args, **kwargs)

if result.error_in_exec is not None:
# raise RuntimeError("a") from result.error_in_exec
raise result.error_in_exec

return result


@pytest.fixture
def ip_empty():
c = Config()
Expand Down

0 comments on commit 88fff1a

Please sign in to comment.