election/openstack_election/tests/cmds
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
..
__init__.py Add some testing for ci_check_all_candidate_files 2019-01-10 15:50:24 +11:00
test_ci_checks.py Don't test candidate files if they're removed 2020-09-28 13:21:06 +00:00