From 48312d67e461bfb16910dffd2429508d47ceceec Mon Sep 17 00:00:00 2001 From: Jeremiah C Leary Date: Wed, 20 Jun 2018 20:15:03 -0500 Subject: [PATCH] Fixing code style issues for codacy. --- vsg/tests/comment/test_fix_rule_comment.py | 3 +-- vsg/tests/comment/test_rule_comment.py | 2 +- vsg/tests/junit/test_junit.py | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/vsg/tests/comment/test_fix_rule_comment.py b/vsg/tests/comment/test_fix_rule_comment.py index 286740cf..9557e6dd 100644 --- a/vsg/tests/comment/test_fix_rule_comment.py +++ b/vsg/tests/comment/test_fix_rule_comment.py @@ -61,7 +61,6 @@ class testFixRuleCommentMethods(unittest.TestCase): def test_rule_001(self): oRuleList = rule_list.rule_list(oFileLibrary) - dExpected = [] oRuleList.fix(7) oRuleList.check_rules() @@ -77,5 +76,5 @@ class testFixRuleCommentMethods(unittest.TestCase): iFailures = 0 for oRule in oRuleList.rules: iFailures += len(oRule.violations) - self.assertEqual(iFailures, iExpectedFailures) + self.assertEqual(iFailures, iExpectedFailures) diff --git a/vsg/tests/comment/test_rule_comment.py b/vsg/tests/comment/test_rule_comment.py index e19d81c8..3065460c 100644 --- a/vsg/tests/comment/test_rule_comment.py +++ b/vsg/tests/comment/test_rule_comment.py @@ -38,7 +38,7 @@ class testRuleCommentMethods(unittest.TestCase): iFailures = 0 for oRule in oRuleList.rules: iFailures += len(oRule.violations) - self.assertEqual(iFailures, iExpectedFailures) + self.assertEqual(iFailures, iExpectedFailures) def test_rule_003(self): oRule = comment.rule_003() diff --git a/vsg/tests/junit/test_junit.py b/vsg/tests/junit/test_junit.py index 5f3a0bb3..371d50a3 100644 --- a/vsg/tests/junit/test_junit.py +++ b/vsg/tests/junit/test_junit.py @@ -59,7 +59,7 @@ class testJunitClasses(unittest.TestCase): self.assertEqual(oTestcase.failures[0].type, 'Type1') self.assertEqual(oTestcase.failures[1].type, 'Type2') self.assertEqual(oTestcase.failures[2].type, 'Type3') - + def test_testcase_class_build_junit(self): oTestcase = junit.testcase('Name', 'Time', 'Classname') for i in range(0, 3): @@ -115,7 +115,7 @@ class testJunitClasses(unittest.TestCase): oTestcase.add_failure(oFailure) oTestsuite.add_testcase(oTestcase) - sHostname = platform.uname()[1] + sHostname = platform.uname()[1] dExpected = [] dExpected.append('')