Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 246 for existent (0.18 sec)

  1. tests/test_security_oauth2_authorization_code_bearer.py

        assert response.status_code == 401, response.text
        assert response.json() == {"detail": "Not authenticated"}
    
    
    def test_incorrect_token():
        response = client.get("/items", headers={"Authorization": "Non-existent testtoken"})
        assert response.status_code == 401, response.text
        assert response.json() == {"detail": "Not authenticated"}
    
    
    def test_token():
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 2.3K bytes
    - Viewed (0)
  2. tests/test_security_oauth2_authorization_code_bearer_description.py

        assert response.status_code == 401, response.text
        assert response.json() == {"detail": "Not authenticated"}
    
    
    def test_incorrect_token():
        response = client.get("/items", headers={"Authorization": "Non-existent testtoken"})
        assert response.status_code == 401, response.text
        assert response.json() == {"detail": "Not authenticated"}
    
    
    def test_token():
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 2.4K bytes
    - Viewed (0)
  3. cmd/os-readdir_test.go

    	"fmt"
    	"os"
    	"path"
    	"path/filepath"
    	"runtime"
    	"sort"
    	"testing"
    )
    
    // Test to check for different input arguments.
    func TestReadDirFail(t *testing.T) {
    	// Check non existent directory.
    	if _, err := readDir("/tmp/non-existent-directory"); err != errFileNotFound {
    		t.Fatalf("expected = %s, got: %s", errFileNotFound, err)
    	}
    
    	file := path.Join(os.TempDir(), "issue")
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 7.5K bytes
    - Viewed (0)
  4. cmd/os-reliable.go

    		switch {
    		case isSysErrNotDir(err) && !osIsNotExist(err):
    			// Windows can have both isSysErrNotDir(err) and osIsNotExist(err) returning
    			// true if the source file path contains an non-existent directory. In that case,
    			// we want to return errFileNotFound instead, which will honored in subsequent
    			// switch cases
    			return errFileAccessDenied
    		case isSysErrPathNotFound(err):
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  5. cni/pkg/util/pluginutil.go

    	fileModified, errChan := make(chan struct{}), make(chan error)
    	go watchFiles(watcher, fileModified, errChan)
    
    	for _, path := range paths {
    		if !file.Exists(path) {
    			log.Infof("file watcher skipping watch on non-existent path: %v", path)
    			continue
    		}
    		if err := watcher.Add(path); err != nil {
    			if closeErr := watcher.Close(); closeErr != nil {
    				err = fmt.Errorf("%s: %w", closeErr.Error(), err)
    			}
    			return nil, err
    		}
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  6. cmd/bucket-lifecycle_test.go

    	}
    }
    
    func TestValidateTransitionTier(t *testing.T) {
    	globalTierConfigMgr = NewTierConfigMgr()
    	testCases := []struct {
    		xml         []byte
    		expectedErr error
    	}{
    		{
    			// non-existent storage-class
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue May 31 09:57:57 GMT 2022
    - 7K bytes
    - Viewed (0)
  7. internal/mountinfo/mountinfo_linux_test.go

    			t.Errorf("got unexpected mountInfo[2]: %#v", mounts[2])
    		}
    	}
    	// Failure case mounts path doesn't exist, if not fail.
    	{
    		if _, err = readProcMounts(filepath.Join(dir, "non-existent")); err != nil && !os.IsNotExist(err) {
    			t.Fatal(err)
    		}
    	}
    }
    
    // Tests read proc mounts reader.
    func TestReadProcMountFrom(t *testing.T) {
    	successCase := `/dev/0 /path/to/0 type0 flags 0 0
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/handling-errors.md

    ```JSON
    {
      "item": "The Foo Wrestlers"
    }
    ```
    
    But if the client requests `http://example.com/items/bar` (a non-existent `item_id` `"bar"`), that client will receive an HTTP status code of 404 (the "not found" error), and a JSON response of:
    
    ```JSON
    {
      "detail": "Item not found"
    }
    ```
    
    !!! tip
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  9. tests/test_ws_router.py

            assert data == "path/to/file"
            data = websocket.receive_text()
            assert data == "a_query_param"
    
    
    def test_wrong_uri():
        """
        Verify that a websocket connection to a non-existent endpoing returns in a shutdown
        """
        client = TestClient(app)
        with pytest.raises(WebSocketDisconnect) as e:
            with client.websocket_connect("/no-router/"):
                pass  # pragma: no cover
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Jun 11 19:08:14 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  10. docs/pt/docs/help-fastapi.md

    Você gosta do **FastAPI**?
    
    Você gostaria de ajudar o FastAPI, outros usários, e o autor?
    
    Ou você gostaria de obter ajuda relacionada ao **FastAPI**??
    
    Existem métodos muito simples de ajudar (A maioria das ajudas podem ser feitas com um ou dois cliques).
    
    E também existem vários modos de se conseguir ajuda.
    
    ## Inscreva-se na newsletter
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8.4K bytes
    - Viewed (0)
Back to top