ceph / merfi

Finds and signs files with different signing tools (gpg, rpm-sign)
MIT License
3 stars 3 forks source link

test FileCollector #5

Closed ktdreyer closed 9 years ago

ktdreyer commented 9 years ago

Add unit test for the FileCollector class

(Down the road, we should move this fixture into a common library so we can use it in more tests)

ktdreyer commented 9 years ago

I have written another test for the GPG backend that mocks Popen and tests that gpg is executed the correct number of times. This uses the same fixture (I copied & pasted it), and I'm not sure where I should move this fixture definition so it can be shared among multiple tests.

ktdreyer commented 9 years ago

I've moved the shared fixture into conftest.py now and amended the commit.