mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-06-28 05:26:13 +02:00
Update dependency ruff to v0.6.8 (#1900)
* Update dependency ruff to v0.6.8 * Run `ruff check .` instead of `ruff .` due to ruff error * Preface ruff lint keys with .lint to address ruff deprecation warning * Changes to appease ruff linter --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Micah Jerome Ellison <micah.jerome.ellison@gmail.com>
This commit is contained in:
parent
4d84c491f1
commit
17e1ba60e5
5 changed files with 29 additions and 28 deletions
|
@ -9,7 +9,7 @@ import string
|
|||
from datetime import datetime
|
||||
from unittest.mock import MagicMock
|
||||
from unittest.mock import patch
|
||||
from xml.etree import ElementTree
|
||||
from xml.etree import ElementTree as ET
|
||||
|
||||
from pytest_bdd import given
|
||||
from pytest_bdd.parsers import parse
|
||||
|
@ -168,7 +168,7 @@ def parse_output_as_language(cli_run, language_name):
|
|||
actual_output = cli_run["stdout"]
|
||||
|
||||
if language_name == "XML":
|
||||
parsed_output = ElementTree.fromstring(actual_output)
|
||||
parsed_output = ET.fromstring(actual_output)
|
||||
elif language_name == "JSON":
|
||||
parsed_output = json.loads(actual_output)
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue