election/openstack_election/tests
Jeremy Stanley 4570981c1b Don't test candidate files if they're removed
The routine to determine which files to check for candidacies, when
used to analyze files being changed with --HEAD, should only test
those files if they are being kept by the change. If they're being
deleted, then there is no reason to test them. Further, testing
files which are slated for removal makes it basically impossible to
revert a previously merged candidacy which has since been
invalidated (for example, by resigning OSF Individual Membership).

Mock os.path.exists in test_find_modified_candidate_files_all_good
to just return True, since we aren't actually creating the file in
that test.

Change-Id: I4d5d9b1d55379adfd1c7d7765324306abf40cdb7
2020-09-28 13:21:06 +00:00
..
cmds Don't test candidate files if they're removed 2020-09-28 13:21:06 +00:00
__init__.py Make openstack_election look more like a python module 2016-09-12 15:35:40 +10:00
base.py Stop to use the __future__ module. 2020-07-24 13:44:46 +02:00
fixtures.py Stop to use the __future__ module. 2020-07-24 13:44:46 +02:00
test_utils.py Use unittest.mock instead of mock 2020-09-15 17:44:21 +00:00