-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Break up grpc unit tests into smaller files
- Loading branch information
Showing
11 changed files
with
1,024 additions
and
759 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,56 @@ | ||
import pytest | ||
|
||
|
||
@pytest.fixture | ||
def vector_dim(): | ||
return 8 | ||
|
||
|
||
@pytest.fixture | ||
def vals1(vector_dim): | ||
return [0.1] * vector_dim | ||
|
||
|
||
@pytest.fixture | ||
def vals2(vector_dim): | ||
return [0.2] * vector_dim | ||
|
||
|
||
@pytest.fixture | ||
def sparse_indices_1(): | ||
return [1, 8, 42] | ||
|
||
|
||
@pytest.fixture | ||
def sparse_values_1(): | ||
return [0.8, 0.9, 0.42] | ||
|
||
|
||
@pytest.fixture | ||
def sparse_indices_2(): | ||
return [1, 3, 5] | ||
|
||
|
||
@pytest.fixture | ||
def sparse_values_2(): | ||
return [0.7, 0.3, 0.31415] | ||
|
||
|
||
@pytest.fixture | ||
def md1(): | ||
return {"genre": "action", "year": 2021} | ||
|
||
|
||
@pytest.fixture | ||
def md2(): | ||
return {"genre": "documentary", "year": 2020} | ||
|
||
|
||
@pytest.fixture | ||
def filter1(): | ||
return {"genre": {"$in": ["action"]}} | ||
|
||
|
||
@pytest.fixture | ||
def filter2(): | ||
return {"year": {"$eq": 2020}} |
Oops, something went wrong.