-
Notifications
You must be signed in to change notification settings - Fork 67
[AL-5662] Add batch export v2 #1116
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
Conversation
05841f5
to
df814eb
Compare
tests/integration/test_batch.py
Outdated
@@ -1,6 +1,10 @@ | |||
from labelbox.exceptions import ProcessingWaitTimeout | |||
import pytest | |||
from labelbox import Dataset, Project | |||
from typing import Tuple |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecesary imports?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Left a minor comment, i'll leave it up for you to fix.
Looks like we're only adding it to a project for now, but we may also want to support it to catalog exports in the future, but we'll leave that for another day
@@ -42,6 +45,43 @@ def test_project(client, rand_gen): | |||
assert project not in projects | |||
|
|||
|
|||
def test_batch_project_export_v2( | |||
configured_batch_project_with_label: Tuple[Project, Dataset, DataRow, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: We don't need to define all the return types since this is a test. May be cleaner to not have to import all of the types too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer to leave it in case anyone needs to do modification, the person will have full intellisense support, without looking back at the definitions. That's what I always find hard about our python services - we're missing type annotations in a lot of places and the code is hard to reason about without poking around.
Uh oh!
There was an error while loading. Please reload this page.