mirror of
https://github.com/Novartis/cellxgene-gateway.git
synced 2026-10-04 04:38:12 +08:00
#87 blacken
This commit is contained in:
@@ -47,7 +47,7 @@ class TestRenderEntry(unittest.TestCase):
|
|||||||
|
|
||||||
|
|
||||||
class TestRenderAnnotation(unittest.TestCase):
|
class TestRenderAnnotation(unittest.TestCase):
|
||||||
@patch('cellxgene_gateway.filecrawl.enable_annotations', new=True)
|
@patch("cellxgene_gateway.filecrawl.enable_annotations", new=True)
|
||||||
def test_GIVEN_no_annotation_THEN_new_alone(self):
|
def test_GIVEN_no_annotation_THEN_new_alone(self):
|
||||||
entry = make_entry(annotations=None)
|
entry = make_entry(annotations=None)
|
||||||
rendered = render_item(entry, source)
|
rendered = render_item(entry, source)
|
||||||
@@ -56,7 +56,7 @@ class TestRenderAnnotation(unittest.TestCase):
|
|||||||
rendered,
|
rendered,
|
||||||
)
|
)
|
||||||
|
|
||||||
@patch('cellxgene_gateway.filecrawl.enable_annotations', new=True)
|
@patch("cellxgene_gateway.filecrawl.enable_annotations", new=True)
|
||||||
def test_GIVEN_annotation_THEN_new_before(self):
|
def test_GIVEN_annotation_THEN_new_before(self):
|
||||||
annotation = FileItem(
|
annotation = FileItem(
|
||||||
subpath="somepath/entry_annotations",
|
subpath="somepath/entry_annotations",
|
||||||
@@ -72,7 +72,7 @@ class TestRenderAnnotation(unittest.TestCase):
|
|||||||
rendered,
|
rendered,
|
||||||
)
|
)
|
||||||
|
|
||||||
@patch('cellxgene_gateway.filecrawl.enable_annotations', new=True)
|
@patch("cellxgene_gateway.filecrawl.enable_annotations", new=True)
|
||||||
def test_GIVEN_annotation_THEN_escaped(self):
|
def test_GIVEN_annotation_THEN_escaped(self):
|
||||||
annotation = FileItem(
|
annotation = FileItem(
|
||||||
subpath="somepath/entry_annotations",
|
subpath="somepath/entry_annotations",
|
||||||
|
|||||||
Reference in New Issue
Block a user