def test_update_object(self):
     assert isinstance(
         SequenceUpdate(1).asset_id.set(1).asset_id.set(None).description.
         set("").description.set(None).external_id.set("1").external_id.set(
             None).metadata.set({}).name.set("").name.set(None),
         SequenceUpdate,
     )
 def test_update_multiple(self, mock_seq_response):
     res = SEQ_API.update([SequenceUpdate(id=1).description.set("blabla")])
     assert isinstance(res, SequenceList)
     assert mock_seq_response.calls[0].response.json()["items"] == res.dump(camel_case=True)
 def test_update_with_update_class(self, mock_seq_response):
     res = SEQ_API.update(SequenceUpdate(id=1).description.set("blabla"))
     assert isinstance(res, Sequence)
     assert mock_seq_response.calls[0].response.json()["items"][0] == res.dump(camel_case=True)
 def test_update(self, new_seq):
     update_seq = SequenceUpdate(new_seq.id).name.set("newname")
     res = COGNITE_CLIENT.sequences.update(update_seq)
     assert "newname" == res.name