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
Conversation
This can cause weird createrepo_c exceptions to get thrown in places that you wouldn't expect.
@@ -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') |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, good call!
Looks good all-in-all. 👍 |
Thanks for the review! |
Generate the update ID/alias upon creation
As opposed to when it's initially pushed to testing, which is how it is currently done.