Skip to content

Comments

ADD helpdesk_project#7

Open
Alberto-Esteban wants to merge 3 commits intoDarioLodeiros:Alberto-Estebanfrom
Alberto-Esteban:Alberto-Esteban
Open

ADD helpdesk_project#7
Alberto-Esteban wants to merge 3 commits intoDarioLodeiros:Alberto-Estebanfrom
Alberto-Esteban:Alberto-Esteban

Conversation

@Alberto-Esteban
Copy link

@DarioLodeiros can you review?

@Alberto-Esteban
Copy link
Author

Alberto-Esteban commented Aug 4, 2020

Part B done. Review in a3baa56


@classmethod
class TestHelpdeskTicketProject(common)
def ticket_in_proyect(cls):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all methods (except setup method) use self, not cls


-button ticket count +1
cls.project.write({
'ticket_count': cls-ticket_count+1
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

X.ticket_count, not X-ticket_count

-check the count of the button is right

def test_helpdesk_ticket_project(self):
self.assertNotEquals(self.ticket.project, '/',
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when a ticket does not have a project established, the m2o field value is False, nor /, and the m2o field it should not be self.ticket.project... ¿_id?

'stage_id': self.stage_closed.id,
})

self.assertequal(self.project_id.ticket_count,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense this test?, You set a ticket in project, and check the project ticket count, then, change de ticket state, and again check the project ticket count... Think that you are not checking the number of open tickets, if not the total. If you were checking the open ones the cash should go down one, also the field name should be representative of the state (open_ticket_count for example)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants