Repository: onicagroup/runway

Issue:
[BUG] Fix docker.hook_data.DockerHookData instance not being truthy.
Description: [BUG] Fix docker.hook_data.DockerHookData instance not being truthy.

Discussion:
codecov[bot]: ## [Codecov](https://app.codecov.io/gh/onicagroup/runway/pull/2526?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=onicagroup) Report
All modified and coverable lines are covered by tests :white_check_mark:
> Project coverage is 90.18%. Comparing base [(`ccb36a6`)](https://app.codecov.io/gh/onicagroup/runway/commit/ccb36a6c6730a8e97a032a5252aeb2935317451e?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=onicagroup) to head [(`7abb6bd`)](https://app.codecov.io/gh/onicagroup/runway/commit/7abb6bd8489927b794dfc252934b2ce41abc18b1?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=onicagroup).

<details><summary>Additional details and impacted files</summary>


[![Impacted file tree graph](https://app.codecov.io/gh/onicagroup/runway/pull/2526/graphs/tree.svg?width=650&height=150&src=pr&token=Ku28I0RY80&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=onicagroup)](https://app.codecov.io/gh/onicagroup/runway/pull/2526?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=onicagroup)

```diff
@@            Coverage Diff             @@
##           master    #2526      +/-   ##
==========================================
- Coverage   90.18%   90.18%   -0.01%     
==========================================
  Files         256      256              
  Lines       15651    15653       +2     
==========================================
+ Hits        14115    14116       +1     
- Misses       1536     1537       +1     
```

| [Files](https://app.codecov.io/gh/onicagroup/runway/pull/2526?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=onicagroup) | Coverage Δ | |
|---|---|---|
| [runway/cfngin/hooks/docker/hook\_data.py](https://app.codecov.io/gh/onicagroup/runway/pull/2526?src=pr&el=tree&filepath=runway%2Fcfngin%2Fhooks%2Fdocker%2Fhook_data.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=onicagroup#diff-cnVud2F5L2Nmbmdpbi9ob29rcy9kb2NrZXIvaG9va19kYXRhLnB5) | `100.00% <100.00%> (ø)` | |

... and [1 file with indirect coverage changes](https://app.codecov.io/gh/onicagroup/runway/pull/2526/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=onicagroup)

------

[Continue to review full report in Codecov by Sentry](https://app.codecov.io/gh/onicagroup/runway/pull/2526?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=onicagroup).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=onicagroup)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://app.codecov.io/gh/onicagroup/runway/pull/2526?dropdown=coverage&src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=onicagroup). Last update [ccb36a6...7abb6bd](https://app.codecov.io/gh/onicagroup/runway/pull/2526?dropdown=coverage&src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=onicagroup). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=onicagroup).

</details>

Patch:
diff --git a/runway/cfngin/hooks/docker/hook_data.py b/runway/cfngin/hooks/docker/hook_data.py
index 73e6c8d6..0275f45a 100644
--- a/runway/cfngin/hooks/docker/hook_data.py
+++ b/runway/cfngin/hooks/docker/hook_data.py
@@ -47,3 +47,7 @@ class DockerHookData(MutableMap):
         new_obj = cls()
         context.hook_data["docker"] = new_obj
         return new_obj
+
+    def __bool__(self) -> bool:
+        """Implement evaluation of instances as a bool."""
+        return True


Test patch:
diff --git a/tests/unit/cfngin/hooks/docker/test_hook_data.py b/tests/unit/cfngin/hooks/docker/test_hook_data.py
index 49e3613c..0d1f614a 100644
--- a/tests/unit/cfngin/hooks/docker/test_hook_data.py
+++ b/tests/unit/cfngin/hooks/docker/test_hook_data.py
@@ -17,6 +17,10 @@ MODULE = "runway.cfngin.hooks.docker.hook_data"
 class TestDockerHookData:
     """Test runway.cfngin.hooks.docker._hook_data.DockerHookData."""
 
+    def test___bool__(self) -> None:
+        """Test __bool__."""
+        assert DockerHookData()
+
     def test_client(self, mocker: MockerFixture) -> None:
         """Test client."""
         mock_local_client = mocker.patch(MODULE + ".DockerClient")