Search Options

Results per page
Sort
Preferred Languages
Advance

Results 951 - 960 of 1,226 for assertOp (0.06 sec)

  1. cmd/bucket-policy-handlers_test.go

    		// Call the ServeHTTP to execute the handler, GetBucketPolicyHandler handles the request.
    		apiRouter.ServeHTTP(recV4, reqV4)
    		// Assert the response code with the expected status.
    		if recV4.Code != testCase.expectedRespStatus {
    			t.Fatalf("Case %d: Expected the response status to be `%d`, but instead found `%d`", i+1, testCase.expectedRespStatus, recV4.Code)
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/math/IntMathTest.java

        }
      }
    
      /** Helper method that asserts the arithmetic mean of x and y is equal to the expectedMean. */
      private static void assertMean(int expectedMean, int x, int y) {
        assertEquals(
            "The expectedMean should be the same as computeMeanSafely",
            expectedMean,
            computeMeanSafely(x, y));
        assertMean(x, y);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  3. guava-testlib/test/com/google/common/testing/GcFinalizationTest.java

     * limitations under the License.
     */
    
    package com.google.common.testing;
    
    import static com.google.common.truth.Truth.assertThat;
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.testing.GcFinalization.FinalizationPredicate;
    import com.google.common.util.concurrent.SettableFuture;
    import java.lang.ref.WeakReference;
    import java.util.WeakHashMap;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/ResourcesTest.java

    import static com.google.common.truth.Truth.assertThat;
    import static java.nio.charset.StandardCharsets.US_ASCII;
    import static java.nio.charset.StandardCharsets.UTF_8;
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.collect.ImmutableList;
    import com.google.common.testing.NullPointerTester;
    import java.io.ByteArrayOutputStream;
    import java.io.File;
    import java.io.IOException;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  5. 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!}
    ```
    
    /// tip
    
    ๐Ÿ‘€ ๐Ÿ‘ˆ ๐Ÿ”ฌ ๐Ÿ”ข ๐Ÿ˜ `def`, ๐Ÿšซ `async def`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  6. fastapi/routing.py

            response_fields = {}
            for additional_status_code, response in self.responses.items():
                assert isinstance(response, dict), "An additional response must be a dict"
                model = response.get("model")
                if model:
                    assert is_body_allowed_for_status_code(
                        additional_status_code
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Oct 12 09:44:57 UTC 2024
    - 172.1K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

    import static java.lang.System.arraycopy;
    import static java.util.Arrays.asList;
    import static java.util.Collections.frequency;
    import static junit.framework.Assert.assertEquals;
    import static junit.framework.Assert.fail;
    
    import com.google.common.annotations.GwtCompatible;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Collection;
    import java.util.Iterator;
    import java.util.List;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  8. istioctl/pkg/validate/validate_test.go

    	"io"
    	"os"
    	"path/filepath"
    	"regexp"
    	"strings"
    	"testing"
    
    	"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
    	"sigs.k8s.io/yaml"
    
    	"istio.io/istio/istioctl/pkg/cli"
    	"istio.io/istio/pkg/test/util/assert"
    )
    
    const (
    	validDeploymentList = `
    apiVersion: v1
    items:
    - apiVersion: apps/v1
      kind: Deployment
      metadata:
        labels:
          app: hello
          version: v1
        name: hello-v1
      spec:
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Aug 02 16:18:14 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  9. docs/zh/docs/tutorial/testing.md

    ไพ‹๏ผš`pip install httpx`.
    
    ///
    
    ๅฏผๅ…ฅ `TestClient`.
    
    ้€š่ฟ‡ไผ ๅ…ฅไฝ ็š„**FastAPI**ๅบ”็”จๅˆ›ๅปบไธ€ไธช `TestClient` ใ€‚
    
    ๅˆ›ๅปบๅๅญ—ไปฅ `test_` ๅผ€ๅคด็š„ๅ‡ฝๆ•ฐ๏ผˆ่ฟ™ๆ˜ฏๆ ‡ๅ‡†็š„ `pytest` ็บฆๅฎš๏ผ‰ใ€‚
    
    ๅƒไฝฟ็”จ `httpx` ้‚ฃๆ ทไฝฟ็”จ `TestClient` ๅฏน่ฑกใ€‚
    
    ไธบไฝ ้œ€่ฆๆฃ€ๆŸฅ็š„ๅœฐๆ–น็”จๆ ‡ๅ‡†็š„Python่กจ่พพๅผๅ†™ไธช็ฎ€ๅ•็š„ `assert` ่ฏญๅฅ๏ผˆ้‡็”ณ๏ผŒๆ ‡ๅ‡†็š„`pytest`๏ผ‰ใ€‚
    
    ```Python hl_lines="2  12  15-18"
    {!../../docs_src/app_testing/tutorial001.py!}
    ```
    
    /// tip | "ๆ็คบ"
    
    ๆณจๆ„ๆต‹่ฏ•ๅ‡ฝๆ•ฐๆ˜ฏๆ™ฎ้€š็š„ `def`๏ผŒไธๆ˜ฏ `async def`ใ€‚
    
    ่ฟ˜ๆœ‰client็š„่ฐƒ็”จไนŸๆ˜ฏๆ™ฎ้€š็š„่ฐƒ็”จ๏ผŒไธๆ˜ฏ็”จ `await`ใ€‚
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/io/CloserTest.java

      }
    
      public void testNullCloseable() throws IOException {
        Closer closer = Closer.create();
        closer.register(null);
        closer.close();
      }
    
      /**
       * Asserts that an exception was thrown when trying to close each of the given throwables and that
       * each such exception was suppressed because of the given thrown exception.
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 11.8K bytes
    - Viewed (0)
Back to top