Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.

Commit

Permalink
Fixup lint test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Apr 17, 2017
1 parent d5ca206 commit ced4cbf
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions tests/test_lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def test_flake8_lint_a_py(app, caplog):
mock.patch.object(lint, '_report') as report:
load_changes.return_value = patch
build_status.return_value = None
report.return_value = None
report.return_value = (1, 2)
lint.problems.set_changes(patch)
lint.process()

Expand Down Expand Up @@ -176,7 +176,7 @@ def test_jscs_lint_a_js(app, caplog):
mock.patch.object(lint, '_report') as report:
load_changes.return_value = patch
build_status.return_value = None
report.return_value = None
report.return_value = (1, 2)
lint.problems.set_changes(patch)
lint.process()

Expand Down Expand Up @@ -227,7 +227,7 @@ def test_eslint_lint_a_js(app, caplog):
mock.patch.object(lint, '_report') as report:
load_changes.return_value = patch
build_status.return_value = None
report.return_value = None
report.return_value = (1, 2)
lint.problems.set_changes(patch)
lint.process()

Expand Down Expand Up @@ -272,7 +272,7 @@ def test_pep8_lint_a_py(app, caplog):
mock.patch.object(lint, '_report') as report:
load_changes.return_value = patch
build_status.return_value = None
report.return_value = None
report.return_value = (1, 2)
lint.problems.set_changes(patch)
lint.process()

Expand Down Expand Up @@ -312,7 +312,7 @@ def test_jsonlint_a_json(app, caplog):
mock.patch.object(lint, '_report') as report:
load_changes.return_value = patch
build_status.return_value = None
report.return_value = None
report.return_value = (1, 2)
lint.problems.set_changes(patch)
lint.process()

Expand Down Expand Up @@ -354,7 +354,7 @@ def test_jsonlint_a_json_changes_in_range(app, caplog):
mock.patch.object(lint, '_report') as report:
load_changes.return_value = patch
build_status.return_value = None
report.return_value = None
report.return_value = (1, 2)
lint.problems.set_changes(patch)
lint.process()

Expand Down Expand Up @@ -397,7 +397,7 @@ def test_jsonlint_a_json_changes_out_of_range(app, caplog):
mock.patch.object(lint, '_report') as report:
load_changes.return_value = patch
build_status.return_value = None
report.return_value = None
report.return_value = (1, 2)
lint.problems.set_changes(patch)
lint.process()

Expand Down Expand Up @@ -435,7 +435,7 @@ def test_shellcheck_a_sh(app, caplog):
mock.patch.object(lint, '_report') as report:
load_changes.return_value = patch
build_status.return_value = None
report.return_value = None
report.return_value = (1, 2)
lint.problems.set_changes(patch)
lint.process()

Expand Down Expand Up @@ -475,7 +475,7 @@ def test_csslint_a_css(app, caplog):
mock.patch.object(lint, '_report') as report:
load_changes.return_value = patch
build_status.return_value = None
report.return_value = None
report.return_value = (1, 2)
lint.problems.set_changes(patch)
lint.process()

Expand Down Expand Up @@ -520,7 +520,7 @@ def test_flake8_lint_a_py_with_custom_glob_pattern(app, caplog):
mock.patch.object(lint, '_report') as report:
load_changes.return_value = patch
build_status.return_value = None
report.return_value = None
report.return_value = (1, 2)
lint.problems.set_changes(patch)
lint.process()

Expand Down Expand Up @@ -565,7 +565,7 @@ def test_flake8_lint_a_py_with_custom_regex_pattern(app, caplog):
mock.patch.object(lint, '_report') as report:
load_changes.return_value = patch
build_status.return_value = None
report.return_value = None
report.return_value = (1, 2)
lint.problems.set_changes(patch)
lint.process()

Expand Down Expand Up @@ -607,7 +607,7 @@ def test_yamllint_a_yml(app, caplog):
mock.patch.object(lint, '_report') as report:
load_changes.return_value = patch
build_status.return_value = None
report.return_value = None
report.return_value = (1, 2)
lint.problems.set_changes(patch)
lint.process()

Expand Down Expand Up @@ -652,7 +652,7 @@ def test_flake8_lint_a_py_with_multi_custom_glob_patterns(app, caplog):
mock.patch.object(lint, '_report') as report:
load_changes.return_value = patch
build_status.return_value = None
report.return_value = None
report.return_value = (1, 2)
lint.problems.set_changes(patch)
lint.process()

Expand Down Expand Up @@ -695,7 +695,7 @@ def test_bandit_lint_a_py(app, caplog):
mock.patch.object(lint, '_report') as report:
load_changes.return_value = patch
build_status.return_value = None
report.return_value = None
report.return_value = (1, 2)
lint.problems.set_changes(patch)
lint.process()

Expand Down Expand Up @@ -737,7 +737,7 @@ def test_rstlint_a_rst(app, caplog):
mock.patch.object(lint, '_report') as report:
load_changes.return_value = patch
build_status.return_value = None
report.return_value = None
report.return_value = (1, 2)
lint.problems.set_changes(patch)
lint.process()

Expand Down Expand Up @@ -782,7 +782,7 @@ def test_pylint_lint_a_py(app, caplog):
mock.patch.object(lint, '_report') as report:
load_changes.return_value = patch
build_status.return_value = None
report.return_value = None
report.return_value = (1, 2)
lint.problems.set_changes(patch)
lint.process()

Expand Down Expand Up @@ -823,7 +823,7 @@ def test_sasslint_lint_a_scss(app, caplog):
mock.patch.object(lint, '_report') as report:
load_changes.return_value = patch
build_status.return_value = None
report.return_value = None
report.return_value = (1, 2)
lint.problems.set_changes(patch)
lint.process()

Expand Down Expand Up @@ -862,7 +862,7 @@ def test_stylelint_lint_a_scss(app, caplog):
mock.patch.object(lint, '_report') as report:
load_changes.return_value = patch
build_status.return_value = None
report.return_value = None
report.return_value = (1, 2)
lint.problems.set_changes(patch)
lint.process()

Expand Down

0 comments on commit ced4cbf

Please sign in to comment.