Skip to content

fix: datalabeling tests #2846

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions datalabeling/label_image_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,15 @@ def instruction():
# to be deleted before the annotation_spec_set can be deleted.
@pytest.mark.slow
def test_label_image(capsys, annotation_spec_set, instruction, dataset):
annotation_spec_set_name = annotation_spec_set.name
instruction_name = instruction.name
dataset_name = dataset.name

# Start labeling.
response = label_image.label_image(
dataset.name,
instruction.name,
annotation_spec_set.name
dataset_name,
instruction_name,
annotation_spec_set_name
)
out, _ = capsys.readouterr()
assert 'Label_image operation name: ' in out
Expand Down
9 changes: 6 additions & 3 deletions datalabeling/label_text_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,15 @@ def instruction():
# to be deleted before the annotation_spec_set can be deleted.
@pytest.mark.slow
def test_label_text(capsys, annotation_spec_set, instruction, dataset):
annotation_spec_set_name = annotation_spec_set.name
instruction_name = instruction.name
dataset_name = dataset.name

# Start labeling.
response = label_text.label_text(
dataset.name,
instruction.name,
annotation_spec_set.name
dataset_name,
instruction_name,
annotation_spec_set_name
)
out, _ = capsys.readouterr()
assert 'Label_text operation name: ' in out
Expand Down
9 changes: 6 additions & 3 deletions datalabeling/label_video_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,15 @@ def instruction():
# to be deleted before the annotation_spec_set can be deleted.
@pytest.mark.slow
def test_label_video(capsys, annotation_spec_set, instruction, dataset):
annotation_spec_set_name = annotation_spec_set.name
instruction_name = instruction.name
dataset_name = dataset.name

# Start labeling.
response = label_video.label_video(
dataset.name,
instruction.name,
annotation_spec_set.name
dataset_name,
instruction_name,
annotation_spec_set_name
)
out, _ = capsys.readouterr()
assert 'Label_video operation name: ' in out
Expand Down