Skip to content

Commit

Permalink
tests: Remove unused import statements
Browse files Browse the repository at this point in the history
Remove the unused imports in tests directory,
to help prepare for coala/coala#3066

Fixes #1126
  • Loading branch information
Techievena committed Dec 16, 2016
1 parent b6aea12 commit f3a810e
Show file tree
Hide file tree
Showing 12 changed files with 2 additions and 22 deletions.
1 change: 0 additions & 1 deletion tests/cmake/CMakeLintBearTest.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import os

from bears.cmake.CMakeLintBear import CMakeLintBear
from coala_utils.ContextManagers import prepare_file
from tests.LocalBearTestHelper import verify_local_bear


Expand Down
2 changes: 0 additions & 2 deletions tests/general/AnnotationBearTest.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
from queue import Queue
import unittest
import os

from bears.general.AnnotationBear import AnnotationBear
from coala_utils.string_processing.Core import escape
from coalib.results.SourceRange import SourceRange
from coalib.results.AbsolutePosition import AbsolutePosition
from coalib.results.HiddenResult import HiddenResult
Expand Down
2 changes: 0 additions & 2 deletions tests/general/IndentationBearTest.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import unittest

from queue import Queue
import os

from bears.general.IndentationBear import IndentationBear
from bears.general.AnnotationBear import AnnotationBear
from coala_utils.string_processing.Core import escape
from coalib.settings.Section import Section
from coalib.settings.Setting import Setting
from coalib.bearlib.languages import Language
Expand Down
2 changes: 1 addition & 1 deletion tests/general/QuotesBearTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from bears.general.QuotesBear import QuotesBear
from coalib.results.SourceRange import SourceRange
from coalib.settings.Section import Section
from coalib.testing.LocalBearTestHelper import verify_local_bear, execute_bear
from coalib.testing.LocalBearTestHelper import execute_bear


class QuotesBearDiffTest(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion tests/java/CheckstyleBearTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from tests.BearTestHelper import generate_skip_decorator
from tests.LocalBearTestHelper import LocalBearTestHelper
from coalib.settings.Section import Section
from coalib.settings.Setting import path, Setting
from coalib.settings.Setting import Setting


@generate_skip_decorator(CheckstyleBear.CheckstyleBear)
Expand Down
2 changes: 0 additions & 2 deletions tests/js/JSComplexityBearTest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import json

from bears.js import JSComplexityBear
from tests.LocalBearTestHelper import verify_local_bear

Expand Down
1 change: 0 additions & 1 deletion tests/js/JSHintBearTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from bears.js.JSHintBear import JSHintBear
from tests.LocalBearTestHelper import verify_local_bear
from coala_utils.ContextManagers import prepare_file

test_file1 = """
var name = (function() { return 'Anton' }());
Expand Down
2 changes: 0 additions & 2 deletions tests/js/JSONFormatBearTest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import json

from bears.js import JSONFormatBear
from tests.LocalBearTestHelper import verify_local_bear

Expand Down
7 changes: 0 additions & 7 deletions tests/natural_language/LanguageToolBearTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@
from tests.BearTestHelper import generate_skip_decorator
from tests.LocalBearTestHelper import verify_local_bear

try:
import language_check
import guess_language
except ImportError as err:
raise SkipTest(str(err))


LanguageToolBearTest = verify_local_bear(
LanguageToolBear,
valid_files=('A correct English sentence sounds nice to everyone.',
Expand Down
1 change: 0 additions & 1 deletion tests/python/requirements/PySafetyBearTest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import pytest
from queue import Queue
from unittest import mock

Expand Down
1 change: 0 additions & 1 deletion tests/python/test_files/pylint_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import sys
import platform # Unused import

print(sys.path)

Expand Down
1 change: 0 additions & 1 deletion tests/scala/ScalaLintBearTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from bears.scala.ScalaLintBear import ScalaLintBear
from tests.LocalBearTestHelper import verify_local_bear
from coala_utils.ContextManagers import prepare_file

good_file = """
object HelloWorld {
Expand Down

0 comments on commit f3a810e

Please sign in to comment.