MCPcopy Create free account
hub / github.com/Ishabdullah/Codey-v2 / test_detect_pytest

Method test_detect_pytest

tests/test_learning.py:25–38  ·  view source on GitHub ↗

Should detect pytest from test file.

(self)

Source from the content-addressed store, hash-verified

23 """Test preference detection from code."""
24
25 def test_detect_pytest(self):
26 """Should detect pytest from test file."""
27 content = """
28import pytest
29
30def test_login():
31 assert True
32
33@pytest.fixture
34def client():
35 pass
36"""
37 result = PreferenceDetector.detect_test_framework(content)
38 assert result == "pytest"
39
40 def test_detect_unittest(self):
41 """Should detect unittest from test file."""

Callers

nothing calls this directly

Calls 1

detect_test_frameworkMethod · 0.80

Tested by

no test coverage detected