refactor: remove bootstrap wrappers and split into config/service/installers
- Replace bootstrap wrapper with config-driven service orchestration - Introduce Config dataclass for centralized env/CLI validation - Add MatomoApi service for session login + app token creation - Move Playwright installer into installers/web and drop old install package - Refactor HttpClient to unify HTTP handling and debug to stderr - Make E2E tests use sys.executable instead of hardcoded python3
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import json
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
import unittest
|
||||
import urllib.request
|
||||
|
||||
@@ -14,7 +15,7 @@ ADMIN_EMAIL = os.environ.get("MATOMO_ADMIN_EMAIL", "administrator@example.org")
|
||||
class TestMatomoBootstrapE2E(unittest.TestCase):
|
||||
def test_bootstrap_creates_api_token(self) -> None:
|
||||
cmd = [
|
||||
"python3",
|
||||
sys.executable,
|
||||
"-m",
|
||||
"matomo_bootstrap",
|
||||
"--base-url",
|
||||
|
||||
Reference in New Issue
Block a user