Skip to content

Instantly share code, notes, and snippets.

@andymckay
Created April 12, 2011 23:36
Show Gist options
  • Save andymckay/916684 to your computer and use it in GitHub Desktop.
Save andymckay/916684 to your computer and use it in GitHub Desktop.
diff --git a/apps/versions/tests.py b/apps/versions/tests.py
index fd9fd85..4d86612 100644
--- a/apps/versions/tests.py
+++ b/apps/versions/tests.py
@@ -647,6 +647,7 @@ class TestSearchVersionFromUpload(TestVersionFromUpload):
def test_file_platform_is_always_all(self):
version = Version.from_upload(self.upload, self.addon,
[self.platform])
+ del version.__dict__['all_files']
files = version.all_files
eq_(len(files), 1)
eq_(files[0].platform.id, amo.PLATFORM_ALL.id)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment