##// END OF EJS Templates
pull-requests: when creating a new version set the created_date to now instead of...
marcink -
r1207:b4498430 stable
parent child Browse files
Show More
@@ -705,7 +705,7 b' class PullRequestModel(BaseModel):'
705 version.title = pull_request.title
705 version.title = pull_request.title
706 version.description = pull_request.description
706 version.description = pull_request.description
707 version.status = pull_request.status
707 version.status = pull_request.status
708 version.created_on = pull_request.created_on
708 version.created_on = datetime.datetime.now()
709 version.updated_on = pull_request.updated_on
709 version.updated_on = pull_request.updated_on
710 version.user_id = pull_request.user_id
710 version.user_id = pull_request.user_id
711 version.source_repo = pull_request.source_repo
711 version.source_repo = pull_request.source_repo
@@ -764,7 +764,10 b' def test_create_version_from_snapshot_up'
764 assert version.title == pr_util.create_parameters['title']
764 assert version.title == pr_util.create_parameters['title']
765 assert version.description == pr_util.create_parameters['description']
765 assert version.description == pr_util.create_parameters['description']
766 assert version.status == PullRequest.STATUS_CLOSED
766 assert version.status == PullRequest.STATUS_CLOSED
767 assert version.created_on == created_on
767
768 # versions get updated created_on
769 assert version.created_on != created_on
770
768 assert version.updated_on == updated_on
771 assert version.updated_on == updated_on
769 assert version.user_id == pull_request.user_id
772 assert version.user_id == pull_request.user_id
770 assert version.revisions == pr_util.create_parameters['revisions']
773 assert version.revisions == pr_util.create_parameters['revisions']
General Comments 0
You need to be logged in to leave comments. Login now