diff --git a/pyproject.toml b/pyproject.toml index 32aa25fb..6397cd9f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "di" -version = "0.4.5" +version = "0.4.6" description = "Autowiring dependency injection" authors = ["Adrian Garcia Badaracco "] readme = "README.md" diff --git a/tests/test_exceptions.py b/tests/test_exceptions.py index eeb18199..37e5c044 100644 --- a/tests/test_exceptions.py +++ b/tests/test_exceptions.py @@ -156,7 +156,9 @@ def collector(one: None = Depends(dep1_reraise)) -> None: except MyException: pass else: - raise AssertionError("MyException should have been re-raised") + raise AssertionError( + "MyException should have been re-raised" + ) # pragma: no cover assert rec.caught == {"dep1_reraise": True} @@ -173,7 +175,9 @@ def collector(one: None = Depends(async_dep1_reraise)) -> None: except MyException: pass else: - raise AssertionError("MyException should have been re-raised") + raise AssertionError( + "MyException should have been re-raised" + ) # pragma: no cover assert rec.caught == {"async_dep1_reraise": True} @@ -191,7 +195,9 @@ def collector( except MyException: pass else: - raise AssertionError("MyException should have been re-raised") + raise AssertionError( + "MyException should have been re-raised" + ) # pragma: no cover assert rec.caught == {"dep1_reraise": True, "dep2_reraise": True} @@ -210,7 +216,9 @@ def collector( except MyException: pass else: - raise AssertionError("MyException should have been re-raised") + raise AssertionError( + "MyException should have been re-raised" + ) # pragma: no cover assert rec.caught == {"async_dep1_reraise": True, "async_dep2_reraise": True} @@ -229,7 +237,9 @@ def collector( except MyException: pass else: - raise AssertionError("MyException should have been re-raised") + raise AssertionError( + "MyException should have been re-raised" + ) # pragma: no cover assert rec.caught == {"async_dep1_reraise": True, "dep2_reraise": True} @@ -240,7 +250,7 @@ def leaf() -> Generator[None, None, None]: except MyException: pass else: - raise AssertionError("Exception did not propagate") + raise AssertionError("Exception did not propagate") # pragma: no cover def parent(child: None = Depends(leaf)) -> Generator[None, None, None]: try: