From b4529a881fb4dcc8a51a5d85b6533f15108f4e22 Mon Sep 17 00:00:00 2001 From: Joshua Hiller Date: Fri, 22 Dec 2023 16:05:38 -0500 Subject: [PATCH] Allow coverage miss on fallback trace-id property lookup --- src/falconpy/_result/_headers.py | 2 +- src/falconpy/_result/_result.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/falconpy/_result/_headers.py b/src/falconpy/_result/_headers.py index c9b24ef25..f9bb4f532 100644 --- a/src/falconpy/_result/_headers.py +++ b/src/falconpy/_result/_headers.py @@ -78,6 +78,6 @@ def ratelimit_remaining(self) -> Optional[int]: return self.get_property("X-Ratelimit-Remaining", None) @property - def trace_id(self) -> Optional[str]: + def trace_id(self) -> Optional[str]: # pragma: no cover """Return the contents of the X-Cs-Traceid key.""" return self.get_property("X-Cs-Traceid", None) diff --git a/src/falconpy/_result/_result.py b/src/falconpy/_result/_result.py index a3b8e2d4d..2fe56813f 100644 --- a/src/falconpy/_result/_result.py +++ b/src/falconpy/_result/_result.py @@ -312,7 +312,7 @@ def trace_id(self) -> Optional[str]: _returned: Optional[str] = None if self.meta: _returned = self.meta.trace_id - elif self.headers: + elif self.headers: # pragma: no cover _returned = self.headers.trace_id return _returned