Skip to content

Commit 79534f2

Browse files
authored
Merge pull request #621 from superannotateai/friday
fix in docs
2 parents 4d2d9aa + d554f1d commit 79534f2

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Authentication
3838
3939
4040
config.ini example
41-
---------------
41+
------------------
4242
.. code-block:: python
4343
4444
[DEFAULT]

tests/integration/annotations/test_annotation_upload_vector.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,7 @@ def replace_item(obj, key, replace_value):
6767
sa.download_image_annotations(self.PROJECT_NAME, self.IMAGE_NAME, tmp_dir)
6868
origin_annotation = replace_item(json.load(open(annotation_path)), "id", -1)
6969
origin_annotation = replace_item(origin_annotation, "groupId", -1)
70-
annotation = json.load(
71-
open(join(tmp_dir, f"{self.IMAGE_NAME}.json"))
72-
)
70+
annotation = json.load(open(join(tmp_dir, f"{self.IMAGE_NAME}.json")))
7371
self.assertEqual(
7472
[i["attributes"] for i in annotation["instances"]],
7573
[i["attributes"] for i in origin_annotation["instances"]],
@@ -93,9 +91,7 @@ def test_annotation_folder_upload_download(self):
9391
annotation_path = join(self.folder_path, f"{image_name}___objects.json")
9492
sa.download_image_annotations(self.PROJECT_NAME, image_name, tmp_dir)
9593
origin_annotation = json.load(open(annotation_path))
96-
annotation = json.load(
97-
open(join(tmp_dir, f"{image_name}.json"))
98-
)
94+
annotation = json.load(open(join(tmp_dir, f"{image_name}.json")))
9995
self.assertEqual(
10096
len([i["attributes"] for i in annotation["instances"]]),
10197
len([i["attributes"] for i in origin_annotation["instances"]]),

tests/integration/annotations/test_annotations_pre_processing.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ def test_annotation_last_action_and_creation_type(self):
3232
sa.upload_image_annotations(self.PROJECT_NAME, self.IMAGE_NAME, annotation_path)
3333
with tempfile.TemporaryDirectory() as tmp_dir:
3434
sa.download_image_annotations(self.PROJECT_NAME, self.IMAGE_NAME, tmp_dir)
35-
annotation = json.load(
36-
open(join(tmp_dir, f"{self.IMAGE_NAME}.json"))
37-
)
35+
annotation = json.load(open(join(tmp_dir, f"{self.IMAGE_NAME}.json")))
3836
for instance in annotation["instances"]:
3937
self.assertEqual(instance["creationType"], "Preannotation")
4038
assert (

0 commit comments

Comments
 (0)