From d20f52367fa60ba4150113b49360118f70895cf1 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Tue, 5 Aug 2025 20:42:12 +0000 Subject: [PATCH] remove test file as requested in PR review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove tests/test_documentation_links.py per lucasgomide's feedback - Keep documentation link fixes intact Co-Authored-By: João --- tests/test_documentation_links.py | 45 ------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 tests/test_documentation_links.py diff --git a/tests/test_documentation_links.py b/tests/test_documentation_links.py deleted file mode 100644 index 35d0699db..000000000 --- a/tests/test_documentation_links.py +++ /dev/null @@ -1,45 +0,0 @@ -"""Test for documentation links to ensure they are valid and accessible.""" - -import pytest -import requests -from urllib.parse import urlparse - - -class TestDocumentationLinks: - """Test class for validating documentation links.""" - - @pytest.mark.parametrize("url", [ - "https://github.com/AgentOps-AI/agentops/blob/main/examples/crewai/job_posting.py", - "https://github.com/AgentOps-AI/agentops/blob/main/examples/crewai/markdown_validator.py", - ]) - def test_agentops_example_links_are_accessible(self, url): - """Test that AgentOps example links in documentation are accessible.""" - try: - response = requests.get(url, timeout=10) - assert response.status_code == 200, f"URL {url} returned status code {response.status_code}" - - parsed_url = urlparse(url) - assert parsed_url.scheme in ['http', 'https'], f"URL {url} should use http or https protocol" - assert parsed_url.netloc, f"URL {url} should have a valid domain" - - except requests.exceptions.RequestException as e: - pytest.fail(f"Failed to access URL {url}: {str(e)}") - - def test_agentops_examples_contain_agentops_implementation(self): - """Test that the linked examples actually contain AgentOps implementation.""" - urls = [ - "https://raw.githubusercontent.com/AgentOps-AI/agentops/main/examples/crewai/job_posting.py", - "https://raw.githubusercontent.com/AgentOps-AI/agentops/main/examples/crewai/markdown_validator.py", - ] - - for url in urls: - try: - response = requests.get(url, timeout=10) - assert response.status_code == 200, f"Could not fetch raw content from {url}" - - content = response.text.lower() - assert "agentops" in content, f"Example at {url} does not contain AgentOps implementation" - assert "import agentops" in content or "from agentops" in content, f"Example at {url} does not import AgentOps" - - except requests.exceptions.RequestException as e: - pytest.fail(f"Failed to fetch content from {url}: {str(e)}")