8 lines
220 B
Python
8 lines
220 B
Python
from domain.entities import Article
|
|
|
|
class FakeArticleSource:
|
|
def __init__(self, articles: list[Article]):
|
|
self.articles = articles
|
|
|
|
def fetch_articles(self) -> list[Article]:
|
|
return self.articles |