-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CLN] Break up test_api.py [Part-2] #2789
base: spike/break_up_test_api
Are you sure you want to change the base?
[CLN] Break up test_api.py [Part-2] #2789
Conversation
Please tag your PR title with one of: [ENH | BUG | DOC | TST | BLD | PERF | TYP | CLN | CHORE]. See https://docs.trychroma.com/contributing#contributing-code-and-ideas |
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Reviewer ChecklistPlease leverage this checklist to ensure your code review is thorough before approving Testing, Bugs, Errors, Logs, Documentation
System Compatibility
Quality
|
16b7304
to
0fff759
Compare
ce11355
to
639621d
Compare
639621d
to
9dbc092
Compare
assert len(collections) == 2 | ||
|
||
|
||
def test_peek(client: ClientAPI) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this got moved to property testing folder
assert collection.name == "testspace2" | ||
|
||
|
||
def test_collection_delete_with_invalid_collection_throws(client: ClientAPI) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this got moved to the test_api_delete file
@@ -14,19 +15,15 @@ def test_delete_invalid_id(client: ClientAPI) -> None: | |||
assert "ID" in str(e.value) | |||
|
|||
|
|||
def test_delete_where_document(client: ClientAPI) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this got moved to test_embeddings
operator_records, | ||
) | ||
|
||
|
||
def test_get_from_db(client: ClientAPI) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this got moved to property testing folder
assert (items["metadatas"])[0]["string_value"] == "one" # type: ignore[index] | ||
|
||
|
||
def test_metadata_add_get_int_float(client: ClientAPI) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this got moved to test_filtering
assert isinstance((items["metadatas"])[0]["float_value"], float) # type: ignore[index] | ||
|
||
|
||
def test_metadata_add_query_int_float(client: ClientAPI) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this got moved to test_filtering
persist_dir = tempfile.mkdtemp() | ||
|
||
|
||
def test_ssl_self_signed(client_ssl: ClientAPI) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this test is already covered in test_ssl_self_signed_without_ssl_verify
Description of changes
Summarize the changes made by this PR.
Test plan
How are these changes tested?
pytest
for python,yarn test
for js,cargo test
for rustDocumentation Changes
Are all docstrings for user-facing APIs updated if required? Do we need to make documentation changes in the docs repository?