mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 08:44:59 +00:00
test: Refactor onboarding test imports
This commit is contained in:
parent
650c4cf948
commit
87090139f6
1 changed files with 12 additions and 2 deletions
|
@ -2,13 +2,23 @@ import argparse
|
||||||
import base64
|
import base64
|
||||||
import hashlib
|
import hashlib
|
||||||
import os
|
import os
|
||||||
import secrets
|
|
||||||
import socketserver
|
|
||||||
import unittest
|
import unittest
|
||||||
from unittest.mock import MagicMock, mock_open, patch
|
from unittest.mock import MagicMock, mock_open, patch
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
|
# Import the functions to be tested
|
||||||
|
from aider.onboarding import (
|
||||||
|
check_openrouter_tier,
|
||||||
|
exchange_code_for_key,
|
||||||
|
find_available_port,
|
||||||
|
generate_pkce_codes,
|
||||||
|
offer_openrouter_oauth,
|
||||||
|
select_default_model,
|
||||||
|
start_openrouter_oauth_flow,
|
||||||
|
try_to_select_default_model,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
# Mock the Analytics class as it's used in some functions
|
# Mock the Analytics class as it's used in some functions
|
||||||
class DummyAnalytics:
|
class DummyAnalytics:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue