mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-12-01 05:48:52 -06:00
refactor: move profile_sync logic into profiling
This commit is contained in:
1 parent
22a81c384d
commit
75a69a4a42
13 files changed
+366
-300
No files matched your search
@@ -946,8 +946,8 @@ class TheGitHubTokenComesFromGh(unittest.TestCase):
|
||||
run.assert_not_called()
|
||||
|
||||
def test_every_api_caller_reads_it(self):
|
||||
import profile_sync
|
||||
from core import upstream
|
||||
from profiling.quota import check_quota
|
||||
from scraper import base_scraper
|
||||
|
||||
with self._gh():
|
||||
@@ -961,7 +961,7 @@ class TheGitHubTokenComesFromGh(unittest.TestCase):
|
||||
"Bearer gho_fromgh")
|
||||
os.environ.pop("GITHUB_TOKEN")
|
||||
with self._gh(), contextlib.redirect_stderr(io.StringIO()):
|
||||
profile_sync._check_quota(606, offline=False)
|
||||
check_quota(606, offline=False)
|
||||
|
||||
def test_another_forge_never_triggers_gh(self):
|
||||
from core import upstream
|
||||
|
||||
Reference in new issue
Block a user