Add news API functionality and update tests for article retrieval

This commit is contained in:
2025-09-29 19:21:08 +02:00
parent badd3e2a6c
commit fc4753a245
3 changed files with 23 additions and 6 deletions

16
demos/news_api.py Normal file
View File

@@ -0,0 +1,16 @@
#### FOR ALL FILES OUTSIDE src/ FOLDER ####
import sys
import os
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '../src')))
###########################################
from dotenv import load_dotenv
from app.news import NewsAPI
def main():
api = NewsAPI()
print("ok")
if __name__ == "__main__":
load_dotenv()
main()