import XCTest @testable import AnalyticsKit /// Network checks, run only with GRAPHLEY_LIVE=1. final class LiveTests: XCTestCase { func testRatingsPull() async throws { try XCTSkipUnless(ProcessInfo.processInfo.environment["GRAPHLEY_LIVE"] == "1") for _ in 0..<3 { let r = try await AppStoreRatings().pull(seed: ["6746770199", "6821642700"]) XCTAssertFalse(r.names.isEmpty) } } func testSocialsPull() async throws { try XCTSkipUnless(ProcessInfo.processInfo.environment["GRAPHLEY_LIVE"] == "1") let r = await Socials().pull(accounts: Portfolio.socials.filter { $0.platform == .youtube || $0.platform == .github }) print("SOCIALS", r.updated, r.failed, r.videos.count) } }