|
|
|
@ -20,6 +20,7 @@ from deepdiff import DeepDiff
|
|
|
|
from PIL import Image
|
|
|
|
from PIL import Image
|
|
|
|
|
|
|
|
|
|
|
|
import shared.utils.s3 as s3
|
|
|
|
import shared.utils.s3 as s3
|
|
|
|
|
|
|
|
from shared.fixtures.init import get_server_image_tag
|
|
|
|
from shared.utils.config import get_method, make_api_client, patch_method
|
|
|
|
from shared.utils.config import get_method, make_api_client, patch_method
|
|
|
|
from shared.utils.helpers import generate_image_files
|
|
|
|
from shared.utils.helpers import generate_image_files
|
|
|
|
|
|
|
|
|
|
|
|
@ -745,13 +746,14 @@ class TestPostTaskData:
|
|
|
|
f"{tmp_dir}:/local",
|
|
|
|
f"{tmp_dir}:/local",
|
|
|
|
"--entrypoint",
|
|
|
|
"--entrypoint",
|
|
|
|
"python3",
|
|
|
|
"python3",
|
|
|
|
"cvat/server:dev",
|
|
|
|
get_server_image_tag(),
|
|
|
|
"utils/dataset_manifest/create.py",
|
|
|
|
"utils/dataset_manifest/create.py",
|
|
|
|
"--output-dir",
|
|
|
|
"--output-dir",
|
|
|
|
"/local",
|
|
|
|
"/local",
|
|
|
|
"/local",
|
|
|
|
"/local",
|
|
|
|
]
|
|
|
|
]
|
|
|
|
subprocess.run(command, check=True)
|
|
|
|
subprocess.check_output(command)
|
|
|
|
|
|
|
|
|
|
|
|
with open(osp.join(tmp_dir, "manifest.jsonl"), mode="rb") as m_file:
|
|
|
|
with open(osp.join(tmp_dir, "manifest.jsonl"), mode="rb") as m_file:
|
|
|
|
s3_client.create_file(
|
|
|
|
s3_client.create_file(
|
|
|
|
data=m_file.read(),
|
|
|
|
data=m_file.read(),
|
|
|
|
|