Skip to content

Commit

Permalink
issue #14: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrahim-kabir committed Apr 3, 2024
1 parent bb68ba0 commit 67bb3d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion finesse/accuracy_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ def update_dict_bing_data(test_data: dict):
load_dotenv()
endpoint = os.getenv("BING_ENDPOINT")
subscription_key = os.getenv("BING_SEARCH_KEY")
search_engine = BingSearch(endpoint, subscription_key, "finesse/cache/")
cache_path = os.getenv("CACHE_PATH", "finesse/cache/")
search_engine = BingSearch(endpoint, subscription_key, cache_path)
count = 1
for key, value in copy_data.items():
question = value.get("question")
Expand Down
3 changes: 2 additions & 1 deletion tests/test_bing_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ def test_search_urls(self):
load_dotenv()
endpoint = os.getenv("BING_ENDPOINT")
subscription_key = os.getenv("BING_SEARCH_KEY")
bing_search = BingSearch(endpoint, subscription_key)
cache_path = os.getenv("CACHE_PATH", "finesse/cache/")
bing_search = BingSearch(endpoint, subscription_key, cache_path)

query = "Canadian Food Inspection Agency"
num_results = 100
Expand Down

0 comments on commit 67bb3d0

Please sign in to comment.