Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate the update ID/alias upon creation #146

Merged
merged 8 commits into from May 20, 2015
Merged

Conversation

lmacken
Copy link
Contributor

@lmacken lmacken commented May 14, 2015

As opposed to when it's initially pushed to testing, which is how it is currently done.

@@ -1147,7 +1147,7 @@ def test_edit_update(self, publish, *args):
self.assertEquals(up['date_approved'], None)
self.assertEquals(up['date_pushed'], None)
self.assertEquals(up['locked'], False)
self.assertEquals(up['alias'], None)
self.assertEquals(up['alias'], u'FEDORA-2015-0002')
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you want to use time.localtime here for the year? I.e., will these tests break when we get to 2016?

Copy link
Contributor

Choose a reason for hiding this comment

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

Or, use freezegun.freeze_time('2015-06-03') on the test.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, good call!

@ralphbean
Copy link
Contributor

Looks good all-in-all. 👍

@lmacken
Copy link
Contributor Author

lmacken commented May 20, 2015

Thanks for the review!

lmacken added a commit that referenced this pull request May 20, 2015
Generate the update ID/alias upon creation
@lmacken lmacken merged commit 33eca31 into develop May 20, 2015
@lmacken lmacken deleted the feature/default-alias branch May 20, 2015 18:07
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.

None yet

2 participants