diff --git a/tests/contrib/awards/test_awards_jsonschema.py b/tests/contrib/awards/test_awards_jsonschema.py
index 5878b19c..1991df57 100644
--- a/tests/contrib/awards/test_awards_jsonschema.py
+++ b/tests/contrib/awards/test_awards_jsonschema.py
@@ -43,8 +43,9 @@ def test_valid_full(appctx, schema):
"scheme": "url",
}
],
- "title": {"en": "Personalised Treatment For Cystic Fibrosis Patients With \
- Ultra-rare CFTR Mutations (and beyond)"},
+ "title": {
+ "en": "Personalised Treatment For Cystic Fibrosis Patients With Ultra-rare CFTR Mutations (and beyond)"
+ },
"number": "755021",
"funder": {"id": "ria", "name": "Research annd Innovation action"},
}
diff --git a/tests/datastreams/test_transformers.py b/tests/datastreams/test_transformers.py
index 3f233d6f..c873adb0 100644
--- a/tests/datastreams/test_transformers.py
+++ b/tests/datastreams/test_transformers.py
@@ -44,7 +44,7 @@ def expected_from_xml():
def test_xml_transformer(expected_from_xml):
- bytes_xml_entry = StreamEntry(b"""
+ entry = b"""
top-level single value
@@ -62,14 +62,15 @@ def test_xml_transformer(expected_from_xml):
- """)
+ """
+ bytes_xml_entry = StreamEntry(entry)
transformer = XMLTransformer()
assert expected_from_xml == transformer.apply(bytes_xml_entry).entry
def test_bad_xml_transformer():
- bytes_xml_entry = StreamEntry(b"""
+ entry = b"""
top-level single value
@@ -87,7 +88,8 @@ def test_bad_xml_transformer():
- """)
+ """
+ bytes_xml_entry = StreamEntry(entry)
transformer = XMLTransformer(root_element="field_two")