diff options
| author | Kinya TERASAKA <kinya.terasaka@visasq.com> | 2019-12-02 13:11:28 +0900 |
|---|---|---|
| committer | Kinya TERASAKA <kinya.terasaka@visasq.com> | 2019-12-02 13:47:15 +0900 |
| commit | cc037338df79df6a1d693d70113033aac355cd77 (patch) | |
| tree | 4454f8a70dfcbf4d05a0e6190974018a46b33a3e /tests/unit | |
| parent | 15de413f9e04a9fe360d6a22a66ba163d21a7cf4 (diff) | |
| download | flake8-cc037338df79df6a1d693d70113033aac355cd77.tar.gz | |
Fixes --exit-zero when empty --diff
fixes pycqa/flake8/merge_requests!137
Diffstat (limited to 'tests/unit')
| -rw-r--r-- | tests/unit/test_application.py | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/tests/unit/test_application.py b/tests/unit/test_application.py index 04845a4..51adefb 100644 --- a/tests/unit/test_application.py +++ b/tests/unit/test_application.py @@ -24,28 +24,15 @@ def application(): @pytest.mark.parametrize( - 'result_count, catastrophic, exit_zero', [ - (0, True, True), - (2, False, True), - (2, True, True), - ] -) -def test_exit_does_not_raise(result_count, catastrophic, exit_zero, - application): - """Verify Application.exit doesn't raise SystemExit.""" - application.result_count = result_count - application.catastrophic_failure = catastrophic - application.options = options(exit_zero=exit_zero) - - assert application.exit() is None - - -@pytest.mark.parametrize( 'result_count, catastrophic, exit_zero, value', [ (0, False, False, False), (0, True, False, True), (2, False, False, True), (2, True, False, True), + + (0, True, True, True), + (2, False, True, False), + (2, True, True, True), ] ) def test_exit_does_raise(result_count, catastrophic, exit_zero, value, |
