Ruff after aider
This commit is contained in:
parent
44104215a2
commit
1371343ff4
|
@ -1,6 +1,4 @@
|
|||
import pytest
|
||||
from unittest.mock import patch, MagicMock
|
||||
import argparse
|
||||
from unittest.mock import patch
|
||||
|
||||
from aider_gitea.__main__ import parse_args
|
||||
|
||||
|
@ -8,11 +6,16 @@ from aider_gitea.__main__ import parse_args
|
|||
def test_parse_args_with_reviewers_and_assignees():
|
||||
"""Test that reviewers and assignees arguments are correctly parsed."""
|
||||
test_args = [
|
||||
'--gitea-url', 'https://gitea.example.com',
|
||||
'--owner', 'test-owner',
|
||||
'--repo', 'test-repo',
|
||||
'--reviewers', 'user1,user2',
|
||||
'--assignees', 'user3,user4'
|
||||
'--gitea-url',
|
||||
'https://gitea.example.com',
|
||||
'--owner',
|
||||
'test-owner',
|
||||
'--repo',
|
||||
'test-repo',
|
||||
'--reviewers',
|
||||
'user1,user2',
|
||||
'--assignees',
|
||||
'user3,user4',
|
||||
]
|
||||
|
||||
with patch('sys.argv', ['aider_gitea'] + test_args):
|
||||
|
@ -28,9 +31,12 @@ def test_parse_args_with_reviewers_and_assignees():
|
|||
def test_parse_args_without_reviewers_and_assignees():
|
||||
"""Test that the parser works without reviewers and assignees."""
|
||||
test_args = [
|
||||
'--gitea-url', 'https://gitea.example.com',
|
||||
'--owner', 'test-owner',
|
||||
'--repo', 'test-repo'
|
||||
'--gitea-url',
|
||||
'https://gitea.example.com',
|
||||
'--owner',
|
||||
'test-owner',
|
||||
'--repo',
|
||||
'test-repo',
|
||||
]
|
||||
|
||||
with patch('sys.argv', ['aider_gitea'] + test_args):
|
||||
|
|
Loading…
Reference in New Issue
Block a user