-
Notifications
You must be signed in to change notification settings - Fork 999
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Change pytest fixtures to be function-scoped instead of sessio…
…n-scoped (#2899) * Test to trigger registry conflicts Signed-off-by: Felix Wang <[email protected]> * Switch environment and associated fixtures to being function scoped Signed-off-by: Felix Wang <[email protected]> * Format Signed-off-by: Felix Wang <[email protected]> * Switch type tests to function-scoped fixtures Signed-off-by: Felix Wang <[email protected]> * Format Signed-off-by: Felix Wang <[email protected]>
- Loading branch information
1 parent
f5196cf
commit 24eec39
Showing
4 changed files
with
30 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import pytest | ||
|
||
from feast.entity import Entity | ||
|
||
|
||
@pytest.mark.integration | ||
def test_apply_first_entity(environment): | ||
entity = Entity(name="first") | ||
fs = environment.feature_store | ||
fs.apply([entity]) | ||
|
||
entities = fs.list_entities() | ||
assert len(entities) == 1 | ||
|
||
|
||
@pytest.mark.integration | ||
def test_apply_second_entity(environment): | ||
entity = Entity(name="second") | ||
fs = environment.feature_store | ||
fs.apply([entity]) | ||
|
||
entities = fs.list_entities() | ||
assert len(entities) == 1 |