You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After working in "Fix deprecations in the query filters" (issue, PR), it'd be nice to propagate the TheHive deprecation warnings to TheHive4py, so that they could be more easily detected. I'm thinking of using the pytest_sessionfinish hook:
tests/utils.py
def propagate_thehive_warnings(container_name: str):
output_lines = subprocess.run(
shlex.split(f"docker logs {container_name}"),
capture_output=True,
text=True
).stdout.lower().splitlines()
for output_line in output_lines:
if "deprecated" in output_line:
warnings.warn(output_line)
After working in "Fix deprecations in the query filters" (issue, PR), it'd be nice to propagate the TheHive deprecation warnings to TheHive4py, so that they could be more easily detected. I'm thinking of using the pytest_sessionfinish hook:
tests/utils.py
tests/conftest.py
Thoughts?
The text was updated successfully, but these errors were encountered: