From cdfd6b85b386b7bbf9d5a5179ef26970b6e5a4e7 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 2 Nov 2021 18:13:14 -0700 Subject: fmt (black): tests/ --- python/tests/api_annotations.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'python/tests/api_annotations.py') diff --git a/python/tests/api_annotations.py b/python/tests/api_annotations.py index 79acaa4b..ac898fa2 100644 --- a/python/tests/api_annotations.py +++ b/python/tests/api_annotations.py @@ -1,4 +1,3 @@ - from fatcat_openapi_client import * from fixtures import * @@ -14,14 +13,13 @@ def test_annotations(api): # create an annotation! api.create_editgroup_annotation( eg.editgroup_id, - EditgroupAnnotation( - comment_markdown="some *annotation*", - extra=dict(thing="thang"))) + EditgroupAnnotation(comment_markdown="some *annotation*", extra=dict(thing="thang")), + ) # check that we can fetch it all sorts of ways a = api.get_editgroup_annotations(eg.editgroup_id) assert len(a) == 1 - assert a[0].extra['thing'] == "thang" + assert a[0].extra["thing"] == "thang" # the editor persists, so this is a hack to find a "recent" one a2 = api.get_editor_annotations(eg.editor_id, limit=100) @@ -31,4 +29,4 @@ def test_annotations(api): found = thing break assert found - assert found.extra['thing'] == "thang" + assert found.extra["thing"] == "thang" -- cgit v1.2.3