def submit_obj(obj): """Submits obj. Sets object id and code after that.""" obj_type = obj.obj_type() object_modal.get_modal_obj(obj_type).submit_obj(obj) obj.obj_id = object_page.ObjectPage().get_obj_id() obj.code = entity_operations.obj_code(object_type=obj_type, obj_id=obj.obj_id)
def submit_obj(obj): """Submits obj. Sets object id, code and modified_by after that.""" obj_name = obj.obj_name() object_modal.get_modal_obj(obj_name).submit_obj(obj) obj.obj_id = object_page.ObjectPage().get_obj_id() if not obj.code: obj.code = entity_operations.obj_code( object_type=obj_name, obj_id=obj.obj_id) obj.modified_by = users.current_person()
def active_tab_name(): """Returns a tab name of the active tab.""" return object_page.ObjectPage().top_tabs.active_tab.name
def test_history_tab_after_workflow_activation(self, activate_workflow): """Test History tab after activation of workflow.""" # pylint: disable=invalid-name assert "History (0)" in object_page.ObjectPage().top_tabs.tab_names