Skip to content

Commit

Permalink
Fix sort_context for windows test
Browse files Browse the repository at this point in the history
  • Loading branch information
andresmor-ms committed Aug 12, 2024
1 parent be34e9b commit 0d3d156
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Copyright (c) 2024 Microsoft Corporation.
# Licensed under the MIT License
import math
import platform

from graphrag.index.graph.extractors.community_reports import sort_context
from graphrag.query.llm.text_utils import num_tokens
Expand Down Expand Up @@ -202,7 +203,7 @@

def test_sort_context():
ctx = sort_context(context)
assert num_tokens(ctx) == 826
assert num_tokens(ctx) == 827 if platform.system() == "Windows" else 826
assert ctx is not None


Expand Down

0 comments on commit 0d3d156

Please sign in to comment.