clearml-server/server/tests/automated/test_projection.py
allegroai 4f2564d33a Add Artifacts support, changed tags to system_tags and added user tags
Add hyper parameter sorting
Add min/max value for all time series metrics
2019-09-24 21:35:41 +03:00

20 lines
676 B
Python

from config import config
from database.model.task.task import TaskStatus
from tests.automated import TestService
log = config.logger(__file__)
class TestProjection(TestService):
def test_overlapping_fields(self):
message = "task started"
task_id = self.create_temp(
"tasks", name="test", type="testing", input=dict(view=dict())
)
self.api.tasks.started(task=task_id, status_message=message)
task = self.api.tasks.get_all_ex(
id=[task_id], only_fields=["status", "status_message"]
).tasks[0]
assert task["status"] == TaskStatus.in_progress
assert task["status_message"] == message