fix(ci): test

This commit is contained in:
Barrett Ruth 2025-09-19 21:11:12 -04:00
parent f148f77ec6
commit ddff996ee2
3 changed files with 3 additions and 3 deletions

View file

@ -61,4 +61,4 @@ jobs:
- name: Install dependencies with pytest - name: Install dependencies with pytest
run: uv sync --dev run: uv sync --dev
- name: Run Python tests - name: Run Python tests
run: PYTHONPATH=. uv run pytest tests/scrapers/ -v run: cd scrapers && PYTHONPATH=.. uv run pytest ../tests/scrapers/ -v

View file

@ -7,7 +7,7 @@ from dataclasses import asdict
import cloudscraper import cloudscraper
from bs4 import BeautifulSoup, Tag from bs4 import BeautifulSoup, Tag
from scrapers.models import MetadataResult, ProblemSummary, TestCase, TestsResult from models import MetadataResult, ProblemSummary, TestCase, TestsResult
def scrape(url: str) -> list[TestCase]: def scrape(url: str) -> list[TestCase]:

View file

@ -8,7 +8,7 @@ from dataclasses import asdict
import requests import requests
from bs4 import BeautifulSoup, Tag from bs4 import BeautifulSoup, Tag
from scrapers.models import MetadataResult, ProblemSummary, TestCase, TestsResult from models import MetadataResult, ProblemSummary, TestCase, TestsResult
def parse_problem_url(problem_input: str) -> str | None: def parse_problem_url(problem_input: str) -> str | None: