Skip to content

Commit c0bf210

Browse files
committed
Fix CI failure: Ruff I001 unsorted imports
1 parent b5731cb commit c0bf210

2 files changed

Lines changed: 23 additions & 1 deletion

File tree

medkit/providers/openfda.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from __future__ import annotations
22

3-
from typing import Any, Dict, List, cast, Optional, Tuple
3+
from typing import Any, Dict, List, Optional, Tuple, cast
44

55
import httpx
66

test_inter.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import httpx
2+
3+
from medkit.interactions import InteractionEngine
4+
from medkit.providers.openfda import OpenFDAProvider
5+
6+
client = httpx.Client()
7+
provider = OpenFDAProvider(client)
8+
engine = InteractionEngine()
9+
10+
drugs = ["aspirin", "warfarin"]
11+
print(f"Testing {drugs}...")
12+
warnings = engine.check_sync(drugs, provider)
13+
for w in warnings:
14+
print(w)
15+
16+
drugs2 = ["metformin", "glipizide"]
17+
print(f"Testing {drugs2}...")
18+
warnings2 = engine.check_sync(drugs2, provider)
19+
for w in warnings2:
20+
print(w)
21+
22+
print("Done")

0 commit comments

Comments
 (0)