fix: resolve CI linting and type checking errors
Some checks failed
CI / test (push) Has been cancelled
Some checks failed
CI / test (push) Has been cancelled
This commit is contained in:
@@ -1,9 +1,8 @@
|
|||||||
"""Unit tests for the parsers module."""
|
"""Unit tests for the parsers module."""
|
||||||
|
|
||||||
import pytest
|
from unittest.mock import patch
|
||||||
from unittest.mock import Mock, patch, MagicMock
|
|
||||||
|
|
||||||
from scaffoldforge.parsers import IssueParser, IssueData, ChecklistItem
|
from scaffoldforge.parsers import ChecklistItem, IssueData, IssueParser
|
||||||
|
|
||||||
|
|
||||||
class TestChecklistItem:
|
class TestChecklistItem:
|
||||||
@@ -109,13 +108,13 @@ class TestIssueParser:
|
|||||||
@patch('scaffoldforge.parsers.issue_parser.Github')
|
@patch('scaffoldforge.parsers.issue_parser.Github')
|
||||||
def test_parser_initialization_without_token(self, mock_github):
|
def test_parser_initialization_without_token(self, mock_github):
|
||||||
"""Test parser initialization without token."""
|
"""Test parser initialization without token."""
|
||||||
parser = IssueParser()
|
IssueParser()
|
||||||
mock_github.assert_called_once()
|
mock_github.assert_called_once()
|
||||||
|
|
||||||
@patch('scaffoldforge.parsers.issue_parser.Github')
|
@patch('scaffoldforge.parsers.issue_parser.Github')
|
||||||
def test_parser_initialization_with_token(self, mock_github):
|
def test_parser_initialization_with_token(self, mock_github):
|
||||||
"""Test parser initialization with token."""
|
"""Test parser initialization with token."""
|
||||||
parser = IssueParser(token="test_token")
|
IssueParser(token="test_token")
|
||||||
mock_github.assert_called_once_with("test_token")
|
mock_github.assert_called_once_with("test_token")
|
||||||
|
|
||||||
def test_parse_checklist_simple(self):
|
def test_parse_checklist_simple(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user