- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 31 for parametrize (0.54 sec)
-
tests/test_param_include_in_schema.py
def test_openapi_schema(): client = TestClient(app) response = client.get("/openapi.json") assert response.status_code == 200 assert response.json() == openapi_schema @pytest.mark.parametrize( "path,cookies,expected_status,expected_response", [ ( "/hidden_cookie", {}, 200, {"hidden_cookie": None}, ), (
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Mar 26 16:56:53 GMT 2024 - 7.4K bytes - Viewed (0) -
tests/test_annotated.py
"msg": "ensure this value has at least 1 characters", "type": "value_error.any_str.min_length", } ) ] } @pytest.mark.parametrize( "path,expected_status,expected_response", [ ("/default", 200, {"foo": "foo"}), ("/default?foo=bar", 200, {"foo": "bar"}), ("/required?foo=bar", 200, {"foo": "bar"}),
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 10.2K bytes - Viewed (0) -
tests/test_dependency_overrides.py
response = client.get("/router-decorator-depends/?q=foo&skip=100&limit=200") assert response.status_code == 200 assert response.json() == {"in": "router-decorator-depends"} @pytest.mark.parametrize( "url,status_code,expected", [ ( "/main-depends/", 200, {"in": "main-depends", "params": {"q": None, "skip": 5, "limit": 10}}, ), (
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 15.4K bytes - Viewed (0) -
tests/test_application.py
import pytest from dirty_equals import IsDict from fastapi.testclient import TestClient from .main import app client = TestClient(app) @pytest.mark.parametrize( "path,expected_status,expected_response", [ ("/api_route", 200, {"message": "Hello World"}), ("/non_decorated_route", 200, {"message": "Hello World"}), ("/nonexistent", 404, {"detail": "Not Found"}), ], )
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 21:56:59 GMT 2024 - 52.2K bytes - Viewed (0) -
docs/az/docs/index.md
* Hər iki _yolda_ `GET` əməliyyatlarını (həmçinin HTTP _metodları_ kimi bilinir) aparır. * `/items/{item_id}` _yolu_ `item_id` adlı `int` qiyməti almalı olan _yol parametrinə_ sahibdir. * `/items/{item_id}` _yolunun_ `q` adlı yol parametri var və bu parametr istəyə bağlı olsa da, `str` qiymətini almalıdır. ### İnteraktiv API Sənədləri
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Mon Apr 29 05:18:04 GMT 2024 - 22.8K bytes - Viewed (0) -
docs/tr/docs/tutorial/query-params.md
{!> ../../../docs_src/query_params/tutorial004.py!} ``` ## Zorunlu Sorgu Parametreleri Türü yol olmayan bir parametre (şu ana kadar sadece sorgu parametrelerini gördük) için varsayılan değer tanımlarsanız o parametre zorunlu olmayacaktır. Parametre için belirli bir değer atamak istemeyip parametrenin sadece isteğe bağlı olmasını istiyorsanız değerini `None` olarak atayabilirsiniz.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 5.9K bytes - Viewed (0) -
docs/tr/docs/index.md
* Eğer `None` olmasa zorunlu bir parametre olacaktı (`PUT` metodunun gövdesinde olduğu gibi). * `PUT` isteği için `/items/{item_id}`'nin gövdesini, JSON olarak doğrulayıp okuyacak: * `name` adında zorunlu bir parametre olup olmadığını ve varsa tipinin `str` olup olmadığını kontol edecek.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Mon Apr 29 05:18:04 GMT 2024 - 21.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/AbstractTester.java
* * @param <G> the type of the test generator required by this tester. An instance of G should * somehow provide an instance of the class under test, plus any other information required to * parameterize the test. * @author George van den Driessche */ @GwtCompatible(emulated = true) @ElementTypesAreNonnullByDefault public class AbstractTester<G> extends TestCase { private G subjectGenerator;
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 2.9K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/AbstractTester.java
* * @param <G> the type of the test generator required by this tester. An instance of G should * somehow provide an instance of the class under test, plus any other information required to * parameterize the test. * @author George van den Driessche */ @GwtCompatible(emulated = true) @ElementTypesAreNonnullByDefault public class AbstractTester<G> extends TestCase { private G subjectGenerator;
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 2.9K bytes - Viewed (0) -
docs/tr/docs/python-types.md
* `items_s` ise her öğesi `bytes` türünde olan bir `set` örneğidir. #### `Dict` Bir `dict` tanımlamak için virgülle ayrılmış iki parametre verebilirsiniz. İlk tip parametresi `dict` değerinin `key` değeri içindir. İkinci parametre ise `dict` değerinin `value` değeri içindir: ```Python hl_lines="1 4" {!../../../docs_src/python_types/tutorial008.py!} ``` Bu şu anlama gelir:
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 9.7K bytes - Viewed (0)