MCPcopy Create free account
hub / github.com/Open-Bee/DataStudio / test_create_qa

Method test_create_qa

tests/operators/test_data_item.py:25–30  ·  view source on GitHub ↗

Test creating QA instance.

(self)

Source from the content-addressed store, hash-verified

23 """Tests for QA dataclass."""
24
25 def test_create_qa(self):
26 """Test creating QA instance."""
27 qa = QA(idx=0, question="What is AI?", answer="Artificial Intelligence")
28 assert qa.idx == 0
29 assert qa.question == "What is AI?"
30 assert qa.answer == "Artificial Intelligence"
31
32 def test_qa_with_original(self):
33 """Test QA with original question/answer."""

Callers

nothing calls this directly

Calls 1

QAClass · 0.90

Tested by

no test coverage detected