- Sort Score
- Result 10 results
- Languages All
Results 281 - 290 of 346 for slice (0.03 sec)
-
tests/test_tutorial/test_security/test_tutorial005_py310.py
assert response.headers["WWW-Authenticate"] == 'Bearer scope="me"' @needs_py310 def test_token_inactive_user(client: TestClient): access_token = get_access_token( username="alice", password="secretalice", scope="me", client=client ) response = client.get( "/users/me", headers={"Authorization": f"Bearer {access_token}"} ) assert response.status_code == 400, response.text
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Mar 13 19:07:10 UTC 2024 - 16.3K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial005_py39.py
assert response.headers["WWW-Authenticate"] == 'Bearer scope="me"' @needs_py39 def test_token_inactive_user(client: TestClient): access_token = get_access_token( username="alice", password="secretalice", scope="me", client=client ) response = client.get( "/users/me", headers={"Authorization": f"Bearer {access_token}"} ) assert response.status_code == 400, response.text
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Mar 13 19:07:10 UTC 2024 - 16.3K bytes - Viewed (0) -
src/bytes/compare_test.go
if cmp != -1 { t.Errorf(`CompareBbigger(%d,%d) = %d`, len, k, cmp) } b[k] = a[k] } } } func TestEndianBaseCompare(t *testing.T) { // This test compares byte slices that are almost identical, except one // difference that for some j, a[j]>b[j] and a[j+1]<b[j+1]. If the implementation // compares large chunks with wrong endianness, it gets wrong result.
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Jul 13 23:11:42 UTC 2023 - 6.8K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial005_an_py39.py
assert response.headers["WWW-Authenticate"] == 'Bearer scope="me"' @needs_py39 def test_token_inactive_user(client: TestClient): access_token = get_access_token( username="alice", password="secretalice", scope="me", client=client ) response = client.get( "/users/me", headers={"Authorization": f"Bearer {access_token}"} ) assert response.status_code == 400, response.text
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Mar 13 19:07:10 UTC 2024 - 16.3K bytes - Viewed (0) -
internal/grid/grid.go
func WriterToChannel(ctx context.Context, ch chan<- []byte) io.Writer { return &writerWrapper{ch: ch, ctx: ctx} } // bytesOrLength returns small (<=100b) byte slices as string, otherwise length. func bytesOrLength(b []byte) string { if len(b) > 100 { return fmt.Sprintf("%d bytes", len(b)) } return fmt.Sprint(b) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jul 29 18:10:04 UTC 2024 - 6.9K bytes - Viewed (0) -
src/archive/tar/tar_test.go
continue } gotAligned := alignSparseEntries(append([]sparseEntry{}, v.in...), v.size) if !slices.Equal(gotAligned, v.wantAligned) { t.Errorf("test %d, alignSparseEntries():\ngot %v\nwant %v", i, gotAligned, v.wantAligned) } gotInverted := invertSparseEntries(append([]sparseEntry{}, v.in...), v.size) if !slices.Equal(gotInverted, v.wantInverted) {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Jul 25 00:25:45 UTC 2024 - 23.9K bytes - Viewed (0) -
internal/crypto/sse-s3.go
return key, err } // UnsealObjectsKeys extracts and decrypts all sealed object keys // from the metadata using the KMS and returns the decrypted object // keys. // // The metadata, buckets and objects slices must have the same length. func (s3 sses3) UnsealObjectKeys(ctx context.Context, k *kms.KMS, metadata []map[string]string, buckets, objects []string) ([]ObjectKey, error) { if k == nil { return nil, Errorf("KMS not configured")
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue May 07 23:55:37 UTC 2024 - 7.6K bytes - Viewed (0) -
istioctl/pkg/validate/validate.go
"istio.io/istio/pkg/config/schema/gvk" "istio.io/istio/pkg/config/schema/resource" "istio.io/istio/pkg/config/validation" "istio.io/istio/pkg/kube/labels" "istio.io/istio/pkg/log" "istio.io/istio/pkg/slices" "istio.io/istio/pkg/url" ) var ( errMissingFilename = errors.New(`error: you must specify resources by --filename. Example resource specifications include: '-f rsrc.yaml' '--filename=rsrc.json'`)
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Aug 15 22:27:47 UTC 2024 - 14.3K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial005.py
assert response.headers["WWW-Authenticate"] == 'Bearer scope="me"' def test_token_inactive_user(): access_token = get_access_token( username="alice", password="secretalice", scope="me" ) response = client.get( "/users/me", headers={"Authorization": f"Bearer {access_token}"} ) assert response.status_code == 400, response.text
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Mar 13 19:07:10 UTC 2024 - 15.4K bytes - Viewed (0) -
docs/em/docs/tutorial/security/simple-oauth2.md
๐ฅ ๐ ๐ ๐ โน & โ, & โคด๏ธ ๐ ๐ ๐ ๏ธ ๐, ๐ ๐ ๐ค ๐บ๐ธ๐ 4๏ธโฃ0๏ธโฃ1๏ธโฃ โ: ```JSON { "detail": "Not authenticated" } ``` ### ๐ ๐ฉโ๐ป ๐ ๐ โฎ๏ธ ๐ ๐ฉโ๐ป, ๐ โฎ๏ธ: ๐ฉโ๐ป: `alice` ๐: `secret2` & ๐ โ๏ธ ๐ ๏ธ `GET` โฎ๏ธ โก `/users/me`. ๐ ๐ ๐ค "๐ ๐ฉโ๐ป" โ, ๐: ```JSON { "detail": "Inactive user" } ``` ## ๐
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 8.8K bytes - Viewed (0)