We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 772ef97 commit 5aae7d7Copy full SHA for 5aae7d7
1 file changed
tests/tools/test_scraper.py
@@ -1,6 +1,12 @@
1
+import os
2
+import pytest
3
from leetcode_py.tools.scraper import LeetCodeScraper
4
5
+# Check if we should run real API tests
6
+# Default to 'false' so CI skips them automatically
7
+RUN_REAL = os.getenv("LEETCODE_REAL_TESTS", "false").lower() == "true"
8
9
+@pytest.mark.skipif(not RUN_REAL, reason="Skipping real API tests. Set LEETCODE_REAL_TESTS=true to run.")
10
class TestLeetCodeScraper:
11
"""Test cases for LeetCodeScraper with real API calls."""
12
0 commit comments