Skip to content

Commit

Permalink
Renaming of Square OAuth plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
pablosnt committed Jan 28, 2021
1 parent 6cee637 commit de0ea4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from .base import RegexBasedDetector


class BasicOAuthDetector(RegexBasedDetector):
class SquareOAuthDetector(RegexBasedDetector):
"""Scans for Square OAuth Secrets"""
secret_type = 'Square OAuth Secret'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import pytest

from detect_secrets.plugins.oauth import BasicOAuthDetector
from detect_secrets.plugins.square_oauth import SquareOAuthDetector


class TestBasicOauthDetector:
class TestSquareOauthDetector:

@pytest.mark.parametrize(
'payload',
Expand All @@ -12,5 +12,5 @@ class TestBasicOauthDetector:
),
)
def test_analyze(self, payload):
logic = BasicOAuthDetector()
logic = SquareOAuthDetector()
assert logic.analyze_line(filename='mock_filename', line=payload)

0 comments on commit de0ea4a

Please sign in to comment.