Show More
@@ -705,7 +705,7 b' class PullRequestModel(BaseModel):' | |||
|
705 | 705 | version.title = pull_request.title |
|
706 | 706 | version.description = pull_request.description |
|
707 | 707 | version.status = pull_request.status |
|
708 |
version.created_on = |
|
|
708 | version.created_on = datetime.datetime.now() | |
|
709 | 709 | version.updated_on = pull_request.updated_on |
|
710 | 710 | version.user_id = pull_request.user_id |
|
711 | 711 | version.source_repo = pull_request.source_repo |
@@ -764,7 +764,10 b' def test_create_version_from_snapshot_up' | |||
|
764 | 764 | assert version.title == pr_util.create_parameters['title'] |
|
765 | 765 | assert version.description == pr_util.create_parameters['description'] |
|
766 | 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 | 771 | assert version.updated_on == updated_on |
|
769 | 772 | assert version.user_id == pull_request.user_id |
|
770 | 773 | assert version.revisions == pr_util.create_parameters['revisions'] |
General Comments 0
You need to be logged in to leave comments.
Login now