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

Don't try to sign if file is missing (bug 1164390) #557

Merged
merged 1 commit into from May 13, 2015

Conversation

magopian
Copy link
Contributor

Fixes bug 1164390

self.version.sign_files()
# 'sign_file' got called twice, but only one was signed.
call_signing_mock.assert_called_once_with(
good_file.file_path, 'endpoint', good_file.version.addon.guid)
Copy link
Member

Choose a reason for hiding this comment

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

I don't see how this test is testing the code. I would expect to remove a file rather than copy one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There's already a file in the fixture, but it doesn't have a real file on the disk (it's just a db fixture).

That's why I'm adding another File with a file on disk. This is the one that needs to get signed (and the original one not having a file on disk shouldn't prevent that).

@robhudson
Copy link
Member

r+

magopian added a commit that referenced this pull request May 13, 2015
Don't try to sign if file is missing (bug 1164390)
@magopian magopian merged commit d3745a1 into mozilla:master May 13, 2015
@magopian magopian deleted the 1164390-dont-sign-if-file-missing branch May 13, 2015 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants