Test the update method of a content. The test create a content with four features: - text - integer - mono reference - multi references and each test start with a new content empty. $ tests --update --help Start the tests --text Set field with the value --integer Set field with the value --reference Set field with the id --references Set this list of values --commit Commit this group of update --clear Clear the field -help Display this list of options --help Display this list of options After each invocation (or after a commit), the test displays the values for the content. By default it is empty: $ tests --update \ > --commit {"reference":null,"integer":null,"text":null} The multivaluated field references is not displayed when there is no values. Any feature can be set using an argument with the same name: $ tests --update \ > --integer 123 {"reference":null,"integer":123,"text":null} $ tests --update \ > --text abc {"reference":null,"integer":null,"text":"abc"} $ tests --update \ > --reference 1 {"reference":1,"integer":null,"text":null} The multireferences values are displayed only when they are set. $ tests --update \ > --references 1,2,3 \ {"reference":null,"integer":null,"text":null} {"references":1} {"references":2} {"references":3} The "commit" argument can be used to update the content at a given state $ tests --update \ > --integer 123 \ > --text abc \ > --references 1 \ > --commit \ > --reference 1 {"reference":null,"integer":123,"text":"abc"} {"references":1} {"reference":1,"integer":123,"text":"abc"} {"references":1} A field can be explicitally set empty. There is a difference between not updating a field (changing nothing) and setting the field to empty: $ tests --update \ > --integer 123 \ > --text abc \ > --commit \ > --clear integer {"reference":null,"integer":123,"text":"abc"} {"reference":null,"integer":null,"text":"abc"} $ tests --update \ > --references 1,2,3 \ > --commit \ > --clear references {"reference":null,"integer":null,"text":null} {"references":1} {"references":2} {"references":3} {"reference":null,"integer":null,"text":null} There is no duplicates values in the external references, a new update replace the existing values. $ tests --update \ > --references 1,2 \ > --commit \ > --references 1,3 {"reference":null,"integer":null,"text":null} {"references":1} {"references":2} {"reference":null,"integer":null,"text":null} {"references":1} {"references":3}