Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 556 for testFn (0.09 sec)

  1. pkg/scheduler/internal/queue/testing.go

    Kante <******@****.***> 1644454438 +0800
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 10 00:53:58 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  2. pkg/volume/testing/testing.go

    limitations under the License.
    */
    
    package testing
    
    import (
    	"fmt"
    	"os"
    	"path/filepath"
    	goruntime "runtime"
    	"strings"
    	"sync"
    	"testing"
    	"time"
    
    	"k8s.io/klog/v2"
    
    	"k8s.io/apimachinery/pkg/util/sets"
    	"k8s.io/utils/exec"
    	testingexec "k8s.io/utils/exec/testing"
    	utilstrings "k8s.io/utils/strings"
    
    	v1 "k8s.io/api/core/v1"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/testing.md

    !!! tip
        If you want to call `async` functions in your tests apart from sending requests to your FastAPI application (e.g. asynchronous database functions), have a look at the [Async Tests](../advanced/async-tests.md){.internal-link target=_blank} in the advanced tutorial.
    
    ## Separating tests
    
    In a real application, you probably would have your tests in a different file.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  4. src/go/doc/testdata/testing.go

    	// full test of the package.
    	short = flag.Bool("test.short", false, "run smaller test suite to save time")
    
    	// Report as tests are run; default is silent for success.
    	chatty         = flag.Bool("test.v", false, "verbose: print additional output")
    	match          = flag.String("test.run", "", "regular expression to select tests to run")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Oct 02 02:28:27 UTC 2022
    - 11.8K bytes
    - Viewed (0)
  5. src/internal/testenv/testenv.go

    			return
    		}
    
    		// runtime.GOROOT doesn't know where GOROOT is (perhaps because the test
    		// binary was built with -trimpath).
    		//
    		// Since this is internal/testenv, we can cheat and assume that the caller
    		// is a test of some package in a subdirectory of GOROOT/src. ('go test'
    		// runs the test in the directory containing the packaged under test.) That
    		// means that if we start walking up the tree, we should eventually find
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:41:38 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  6. pkg/volume/csi/testing/testing.go

    limitations under the License.
    */
    
    package testing
    
    import (
    	"testing"
    
    	v1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/util/wait"
    	"k8s.io/client-go/informers"
    	fakeclient "k8s.io/client-go/kubernetes/fake"
    	utiltesting "k8s.io/client-go/util/testing"
    	"k8s.io/kubernetes/pkg/volume"
    	"k8s.io/kubernetes/pkg/volume/csi"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 07 00:11:50 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/common/python/testing.py

    """Common testing utilities for quantization libraries."""
    import itertools
    import os
    from typing import Any, Mapping, Sequence
    
    
    def parameter_combinations(
        test_parameters: Sequence[Mapping[str, Sequence[Any]]]
    ) -> Sequence[Mapping[str, Any]]:
      """Generate all combinations of test parameters.
    
      Args:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 21 08:51:46 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  8. docs/em/docs/tutorial/testing.md

        🤶 Ⓜ. `pip install httpx`.
    
    🗄 `TestClient`.
    
    ✍ `TestClient` 🚶‍♀️ 👆 **FastAPI** 🈸 ⚫️.
    
    ✍ 🔢 ⏮️ 📛 👈 ▶️ ⏮️ `test_` (👉 🐩 `pytest` 🏛).
    
    ⚙️ `TestClient` 🎚 🎏 🌌 👆 ⏮️ `httpx`.
    
    ✍ 🙅 `assert` 📄 ⏮️ 🐩 🐍 🧬 👈 👆 💪 ✅ (🔄, 🐩 `pytest`).
    
    ```Python hl_lines="2  12  15-18"
    {!../../../docs_src/app_testing/tutorial001.py!}
    ```
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  9. docs/ru/docs/tutorial/testing.md

        Например, так: `pip install httpx`.
    
    Импортируйте `TestClient`.
    
    Создайте объект `TestClient`, передав ему в качестве параметра Ваше приложение **FastAPI**.
    
    Создайте функцию, название которой должно начинаться с `test_` (это стандарт из соглашений `pytest`).
    
    Используйте объект `TestClient` так же, как Вы используете `httpx`.
    
    Напишите простое утверждение с `assert` дабы проверить истинность Python-выражения (это тоже стандарт `pytest`).
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  10. src/internal/testenv/exec.go

    	// may as well use the same path so that this branch can be tested without
    	// an ios environment.
    
    	if !testing.Testing() {
    		// This isn't a standard 'go test' binary, so we don't know how to
    		// self-exec in a way that should succeed without side effects.
    		// Just forget it.
    		return errors.New("can't probe for exec support with a non-test executable")
    	}
    
    	// We know that this is a test executable. We should be able to run it with a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 27 17:53:23 UTC 2023
    - 7.5K bytes
    - Viewed (0)
Back to top