You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
793 B
31 lines
793 B
"""
|
|
Pytest configuration and fixtures
|
|
"""
|
|
import pytest
|
|
import sys
|
|
import os
|
|
|
|
# Add src to path for imports
|
|
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', 'src'))
|
|
|
|
|
|
@pytest.fixture
|
|
def sample_hadith_data():
|
|
"""Sample hadith data for testing"""
|
|
return {
|
|
"Title": "Sample Hadith",
|
|
"Arabic Text": "عن أبي هريرة رضي الله عنه",
|
|
"Translation": "From Abu Hurairah, may Allah be pleased with him",
|
|
"Source Info": "Sahih Bukhari"
|
|
}
|
|
|
|
|
|
@pytest.fixture
|
|
def sample_article_data():
|
|
"""Sample article data for testing"""
|
|
return {
|
|
"Title": "Sample Islamic Article",
|
|
"Content": "This is a sample Islamic article content...",
|
|
"Author": "Islamic Scholar",
|
|
"Source": "Islamic Website"
|
|
}
|