Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
test_create_http_client.py16 linesDownload Raw Back to client
1import subprocess
2
3# Needs to be a module, not a file, so that local imports work.
4TEST_MODULE = "chromadb.test.client.create_http_client_with_basic_auth"
5
6
7def test_main() -> None:
8    # This is the only way to test what we want to test: pytest does a bunch of
9    # importing and other module stuff in the background, so we need a clean
10    # python process to make sure we're not circular-importing.
11    #
12    # See https://github.com/chroma-core/chroma/issues/1554
13
14    res = subprocess.run(["python", "-m", TEST_MODULE])
15    assert res.returncode == 0
16 
codekingpro/portable-devtools · Team Ai