Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
epinzur committed Feb 5, 2025
1 parent e7ee9ec commit 94da13b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Install Python dependencies
run: uv sync --frozen --all-packages
run: uv sync --frozen --all-packages --all-extras
shell: bash

- name: Test graph-retriever
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def test_transform_documents(animal_docs: list[Document]):
assert "third: is" in transformed_docs[0].metadata["spacey"]

transformer = SpacyNERTransformer(
model=fake_model, metadata_key="spacey", include_labels=set("first")
model=fake_model, metadata_key="spacey", include_labels=set(["first"])
)
transformed_docs = transformer.transform_documents(animal_docs)
assert "spacey" in transformed_docs[0].metadata
Expand All @@ -42,7 +42,7 @@ def test_transform_documents(animal_docs: list[Document]):
assert "third: is" not in transformed_docs[0].metadata["spacey"]

transformer = SpacyNERTransformer(
model=fake_model, metadata_key="spacey", exclude_labels=set("first")
model=fake_model, metadata_key="spacey", exclude_labels=set(["first"])
)
transformed_docs = transformer.transform_documents(animal_docs)
assert "spacey" in transformed_docs[0].metadata
Expand Down
8 changes: 4 additions & 4 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 94da13b

Please sign in to comment.