def test_follow_transition(server): doc = Document(name=WORKSPACE_NAME, type="File", properties={"dc:title": "bar.txt"}) doc = server.documents.create(doc, parent_path=WORKSPACE_ROOT) try: assert doc.state == "project" doc.follow_transition("approve") assert doc.state == "approved" doc.follow_transition("backToProject") assert doc.state == "project" finally: doc.delete()
def test_follow_transition(server): doc = Document(name=pytest.ws_python_test_name, type='File', properties={ 'dc:title': 'bar.txt', }) doc = server.documents.create(doc, parent_path=pytest.ws_root_path) try: assert doc.state == 'project' doc.follow_transition('approve') assert doc.state == 'approved' doc.follow_transition('backToProject') assert doc.state == 'project' finally: doc.delete()
def test_follow_transition(server): doc = Document( name=pytest.ws_python_test_name, type='File', properties={ 'dc:title': 'bar.txt', }) doc = server.documents.create( doc, parent_path=pytest.ws_root_path) try: assert doc.state == 'project' doc.follow_transition('approve') assert doc.state == 'approved' doc.follow_transition('backToProject') assert doc.state == 'project' finally: doc.delete()