Created
May 31, 2016 12:16
-
-
Save EnTeQuAk/ccf2e6f1596cac4f753879f8d258cc7b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def test_webextension_generate_guid_no_error_on_deleted_addon(self): | |
addon = Addon.from_upload( | |
self.get_upload('webextension_no_id.xpi'), | |
[self.platform]) | |
assert addon.guid is not None | |
addon.guid = None | |
addon.save() | |
addon = Addon.from_upload( | |
self.get_upload('webextension_no_id.xpi'), | |
[self.platform]) | |
assert addon.guid is not None | |
# Uploading the same addon without a id works. | |
new_addon = Addon.from_upload( | |
self.get_upload('webextension_no_id.xpi'), | |
[self.platform]) | |
assert new_addon.guid is not None | |
assert new_addon.guid != addon.guid |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment