File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -180,12 +180,12 @@ jobs:
180180 run : |
181181 cd examples/server/tests
182182 $env:PYTHONIOENCODING = ":replace"
183- pytest -v -s - x
183+ pytest -v -x
184184
185185 - name : Slow tests
186186 id : server_integration_tests_slow
187187 if : ${{ (github.event.schedule || github.event.inputs.slow_tests == 'true') && matrix.build_type == 'Release' }}
188188 run : |
189189 cd examples/server/tests
190190 $env:SLOW_TESTS = "1"
191- pytest -v -s - x
191+ pytest -v -x
Original file line number Diff line number Diff line change 44
55if [ $# -lt 1 ]
66then
7- pytest -v -s - x
7+ pytest -v -x
88else
99 pytest " $@ "
1010fi
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ def test_embedding_single():
2323 assert len (res .body ['data' ][0 ]['embedding' ]) > 1
2424
2525 # make sure embedding vector is normalized
26- assert abs (sum ([x ** 2 for x in res .body ['data' ][0 ]['embedding' ]]) - 1 ) < 1e-6
26+ assert abs (sum ([x ** 2 for x in res .body ['data' ][0 ]['embedding' ]]) - 1 ) < 1e-5
2727
2828
2929def test_embedding_multiple ():
@@ -95,4 +95,4 @@ def test_same_prompt_give_same_result():
9595 v0 = res .body ['data' ][0 ]['embedding' ]
9696 vi = res .body ['data' ][i ]['embedding' ]
9797 for x , y in zip (v0 , vi ):
98- assert abs (x - y ) < 1e-6
98+ assert abs (x - y ) < 1e-5
You can’t perform that action at this time.
0 commit comments