Skip to content

Commit 690cb9b

Browse files
author
Diego Ardila
committed
Fixing tests now that bug is fixed
1 parent 66a763c commit 690cb9b

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

pyproject.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ exclude = '''
2121

2222
[tool.poetry]
2323
name = "scale-nucleus"
24-
version = "0.1.5"
24+
version = "0.1.16"
2525
description = "The official Python client library for Nucleus, the Data Platform for AI"
2626
license = "MIT"
2727
authors = ["Scale AI Nucleus Team <nucleusapi@scaleapi.com>"]
@@ -35,7 +35,7 @@ packages = [{include="nucleus"}]
3535
python = "^3.6.2"
3636
grequests = "^0.6.0"
3737
requests = "^2.25.1"
38-
tqdm = "^4.60.0"
38+
tqdm = "^4.41.0"
3939
dataclasses = { version = "^0.7", python = "^3.6.1, <3.7" }
4040

4141
[tool.poetry.dev-dependencies]
@@ -48,6 +48,11 @@ mypy = "^0.812"
4848
coverage = "^5.5"
4949
pre-commit = "^2.12.1"
5050

51+
[tool.pytest.ini_options]
52+
markers = [
53+
"integration: marks tests as slow (deselect with '-m \"not integration\"')",
54+
]
55+
5156

5257
[build-system]
5358
requires = ["poetry-core>=1.0.0"]

tests/test_dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def test_annotate_async_with_error(dataset: Dataset):
305305
"annotation_upload": {
306306
"epoch": 1,
307307
"total": 2,
308-
"errored": 0, # TODO: fix this once backend fix is in
308+
"errored": 1,
309309
"ignored": 0,
310310
"datasetId": dataset.id,
311311
"processed": 1,

tests/test_prediction.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,6 @@ def test_mixed_pred_upload_async(model_run: ModelRun):
283283
asynchronous=True,
284284
)
285285
job.sleep_until_complete()
286-
print(job.status())
287-
print(job.errors())
288286

289287
assert job.status() == {
290288
"job_id": job.id,
@@ -330,7 +328,7 @@ def test_mixed_pred_upload_async_with_error(model_run: ModelRun):
330328
"annotation_upload": {
331329
"epoch": 1,
332330
"total": 2,
333-
"errored": 0,
331+
"errored": 1,
334332
"ignored": 0,
335333
"datasetId": model_run._dataset_id,
336334
"processed": 1,

0 commit comments

Comments
 (0)