Skip to content

Commit

Permalink
fix linting and test
Browse files Browse the repository at this point in the history
  • Loading branch information
gruebel committed Oct 14, 2023
1 parent d64e1be commit 89f4732
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion checkov/arm/base_resource_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from abc import abstractmethod
from collections.abc import Iterable
from typing import Any, Callable
from typing import Any

from checkov.arm.registry import arm_resource_registry
from checkov.bicep.checks.resource.registry import registry as bicep_registry
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from abc import abstractmethod
from collections.abc import Iterable
from typing import Callable, Optional, Dict, Any
from typing import Optional, Dict, Any

from checkov.cloudformation.checks.resource.registry import cfn_registry
from checkov.common.checks.base_check import BaseCheck
Expand Down
2 changes: 1 addition & 1 deletion checkov/terraform/checks/data/base_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from abc import abstractmethod
from collections.abc import Iterable
from typing import Dict, List, Callable, Optional, Any
from typing import Dict, List, Any

from checkov.common.checks.base_check import BaseCheck
from checkov.common.models.enums import CheckResult, CheckCategories
Expand Down
5 changes: 1 addition & 4 deletions tests/common/checks/test_base_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,7 @@ def __init__(self):
TestCheckUnknownSignature()

self.assertIsInstance(context.exception, TypeError)
self.assertEqual(
"Can't instantiate abstract class TestCheckUnknownSignature with abstract methods scan_entity_conf",
context.exception.args[0]
)
self.assertRegex(context.exception.args[0], r"Can't instantiate abstract class TestCheckUnknownSignature with abstract method(s)? scan_entity_conf")

def test_details_reinitializing_after_execution(self):
check = TestCheckDetails()
Expand Down

0 comments on commit 89f4732

Please sign in to comment.