Skip to content

Commit

Permalink
tests: set scope
Browse files Browse the repository at this point in the history
  • Loading branch information
winstxnhdw committed Sep 23, 2024
1 parent 6cb9ad2 commit acac5bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_embedding.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# pylint: disable=missing-function-docstring,redefined-outer-name

from typing import Iterable, Literal
from typing import Iterator, Literal

from numpy import array_equal
from pytest import fixture
Expand All @@ -11,8 +11,8 @@
type Text = Literal['Hello world!']


@fixture()
def embedding() -> Iterable[Embedder]:
@fixture(scope='function')
def embedding() -> Iterator[Embedder]:
return embedder_model()


Expand Down

0 comments on commit acac5bf

Please sign in to comment.