- Sort Score
- Num 10 results
- Language All
Results 71 - 80 of 269 for Remark (0.04 seconds)
-
tests/test_modules_same_name_body/test_main.py
from .app.main import app client = TestClient(app) @pytest.mark.parametrize( "path", ["/a/compute", "/a/compute/", "/b/compute", "/b/compute/"] ) def test_post(path): data = {"a": 2, "b": "foo"} response = client.post(path, json=data) assert response.status_code == 200, response.text assert data == response.json() @pytest.mark.parametrize(
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 6.2K bytes - Click Count (0) -
docs/tr/docs/advanced/async-tests.md
Bunu nasıl çalıştırabileceğimize bir bakalım. ## pytest.mark.anyio { #pytest-mark-anyio }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 07:53:17 GMT 2026 - 4.2K bytes - Click Count (0) -
scripts/tests/test_translation_fixer/test_code_blocks/test_code_blocks_mermaid.py
import pytest from typer.testing import CliRunner from scripts.translation_fixer import cli data_path = Path( "scripts/tests/test_translation_fixer/test_code_blocks/data" ).absolute() @pytest.mark.parametrize( "copy_test_files", [(f"{data_path}/en_doc.md", f"{data_path}/translated_doc_mermaid_translated.md")], indirect=True, ) def test_translated(runner: CliRunner, root_dir: Path, copy_test_files):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Jan 10 22:43:44 GMT 2026 - 1.8K bytes - Click Count (0) -
android/guava/src/com/google/common/hash/HashingInputStream.java
} return numOfBytesRead; } /** * mark() is not supported for HashingInputStream * * @return {@code false} always */ @Override public boolean markSupported() { return false; } /** mark() is not supported for HashingInputStream */ @Override public void mark(int readlimit) {} /** * reset() is not supported for HashingInputStream. *Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 2.9K bytes - Click Count (0) -
tests/test_stream_cancellation.py
""" from collections.abc import AsyncIterable import anyio import pytest from fastapi import FastAPI from fastapi.responses import StreamingResponse pytestmark = [ pytest.mark.anyio, pytest.mark.filterwarnings("ignore::pytest.PytestUnraisableExceptionWarning"), ] app = FastAPI() @app.get("/stream-raw", response_class=StreamingResponse) async def stream_raw() -> AsyncIterable[str]:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 27 18:56:47 GMT 2026 - 2.7K bytes - Click Count (0) -
tests/test_tutorial/test_body/test_tutorial002.py
], ) def get_client(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.body.{request.param}") client = TestClient(mod.app) return client @pytest.mark.parametrize("price", ["50.5", 50.5]) def test_post_with_tax(client: TestClient, price: str | float): response = client.post( "/items/",
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 5.8K bytes - Click Count (0) -
internal/once/init.go
return l.do(f) } return nil } func (l *Init) do(f func() error) error { l.m.Lock() defer l.m.Unlock() if atomic.LoadUint32(&l.done) == 0 { if err := f(); err != nil { return err } // Mark as done only when f() is successful atomic.StoreUint32(&l.done, 1) } return nil } // DoWithContext is similar to Do except that it accepts a context as an argument to be passed.
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue May 09 04:20:31 GMT 2023 - 2.1K bytes - Click Count (0) -
tests/test_param_include_in_schema.py
@app.get("/hidden_query") async def hidden_query( hidden_query: str | None = Query(default=None, include_in_schema=False), ): return {"hidden_query": hidden_query} @pytest.mark.parametrize( "path,cookies,expected_status,expected_response", [ ( "/hidden_cookie", {}, 200, {"hidden_cookie": None}, ), (
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 8.6K bytes - Click Count (0) -
scripts/tests/test_translation_fixer/test_code_blocks/test_code_blocks_lines_number_mismatch.py
import pytest from typer.testing import CliRunner from scripts.translation_fixer import cli data_path = Path( "scripts/tests/test_translation_fixer/test_code_blocks/data" ).absolute() @pytest.mark.parametrize( "copy_test_files", [(f"{data_path}/en_doc.md", f"{data_path}/translated_doc_lines_number_gt.md")], indirect=True, ) def test_gt(runner: CliRunner, root_dir: Path, copy_test_files):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Jan 10 22:43:44 GMT 2026 - 1.9K bytes - Click Count (0) -
scripts/tests/test_translation_fixer/test_code_blocks/test_code_blocks_wrong_lang_code.py
import pytest from typer.testing import CliRunner from scripts.translation_fixer import cli data_path = Path( "scripts/tests/test_translation_fixer/test_code_blocks/data" ).absolute() @pytest.mark.parametrize( "copy_test_files", [(f"{data_path}/en_doc.md", f"{data_path}/translated_doc_wrong_lang_code.md")], indirect=True, ) def test_wrong_lang_code_1(runner: CliRunner, root_dir: Path, copy_test_files):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Jan 10 22:43:44 GMT 2026 - 1.9K bytes - Click Count (0)