Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ecosystem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
qualification:
permissions:
contents: read
uses: ml4t/ecosystem/.github/workflows/qualify-library.yml@955d8ce160c48b6907bc67ca90db219ebe7acfb9 # 2026-09-19 policy snapshot
uses: ml4t/ecosystem/.github/workflows/qualify-library.yml@a3080f8e09b197098c9d796240e746aca516492e # 2026-09-23 policy snapshot
with:
import-package: ml4t.data
prerelease-exception: python-315-polars
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
needs: preflight
permissions:
contents: read
uses: ml4t/ecosystem/.github/workflows/qualify-library.yml@955d8ce160c48b6907bc67ca90db219ebe7acfb9 # 2026-09-19 policy snapshot
uses: ml4t/ecosystem/.github/workflows/qualify-library.yml@a3080f8e09b197098c9d796240e746aca516492e # 2026-09-23 policy snapshot
with:
import-package: ml4t.data
prerelease-exception: python-315-polars
Expand Down
5 changes: 4 additions & 1 deletion tests/test_aqr_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from io import BytesIO
from pathlib import Path
from unittest.mock import MagicMock, patch
from urllib.parse import urlparse

import pandas as pd
import polars as pl
Expand Down Expand Up @@ -530,4 +531,6 @@ def test_default_path(self):

def test_base_url(self):
"""Test BASE_URL is valid AQR URL."""
assert "aqr.com" in AQRFactorProvider.BASE_URL
parsed = urlparse(AQRFactorProvider.BASE_URL)
assert parsed.scheme == "https"
assert parsed.hostname == "www.aqr.com"
7 changes: 5 additions & 2 deletions tests/test_kalshi_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

from datetime import datetime
from unittest.mock import MagicMock, patch
from urllib.parse import urlparse

import polars as pl
import pytest
Expand Down Expand Up @@ -62,8 +63,10 @@ def test_rate_limit_default(self):
def test_base_url(self):
"""Test base URL is correct."""
provider = KalshiProvider()
assert "elections.kalshi.com" in provider.BASE_URL
assert "trade-api/v2" in provider.BASE_URL
parsed = urlparse(provider.BASE_URL)
assert parsed.scheme == "https"
assert parsed.hostname == "api.elections.kalshi.com"
assert parsed.path == "/trade-api/v2"
provider.close()


Expand Down
7 changes: 5 additions & 2 deletions tests/test_wiki_prices_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from datetime import datetime
from pathlib import Path
from unittest.mock import MagicMock, patch
from urllib.parse import urlparse

import polars as pl
import pytest
Expand Down Expand Up @@ -645,5 +646,7 @@ def test_default_paths_exist(self):

def test_nasdaq_export_url(self):
"""Test NASDAQ_EXPORT_URL is valid."""
assert "nasdaq.com" in WikiPricesProvider.NASDAQ_EXPORT_URL
assert "WIKI/PRICES" in WikiPricesProvider.NASDAQ_EXPORT_URL
parsed = urlparse(WikiPricesProvider.NASDAQ_EXPORT_URL)
assert parsed.scheme == "https"
assert parsed.hostname == "data.nasdaq.com"
assert parsed.path == "/api/v3/datatables/WIKI/PRICES.csv"
Loading