Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 58 of 58 for testChain (0.04 sec)

  1. docs/de/docs/advanced/settings.md

    Dann wäre es sehr einfach, beim Testen ein anderes Einstellungsobjekt bereitzustellen, indem man eine Abhängigkeitsüberschreibung für `get_settings` erstellt:
    
    {* ../../docs_src/settings/app02_an_py39/test_main.py hl[9:10,13,21] *}
    
    Bei der Abhängigkeitsüberschreibung legen wir einen neuen Wert für `admin_email` fest, wenn wir das neue `Settings`-Objekt erstellen, und geben dann dieses neue Objekt zurück.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 24 10:28:19 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  2. docs/en/docs/advanced/settings.md

    Then it would be very easy to provide a different settings object during testing by creating a dependency override for `get_settings`:
    
    {* ../../docs_src/settings/app02_an_py39/test_main.py hl[9:10,13,21] *}
    
    In the dependency override we set a new value for the `admin_email` when creating the new `Settings` object, and then we return that new object.
    
    Then we can test that it is used.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  3. docs/es/docs/advanced/settings.md

    Luego sería muy fácil proporcionar un objeto de configuraciones diferente durante las pruebas al sobrescribir una dependencia para `get_settings`:
    
    {* ../../docs_src/settings/app02_an_py39/test_main.py hl[9:10,13,21] *}
    
    En la dependencia sobreescrita establecemos un nuevo valor para el `admin_email` al crear el nuevo objeto `Settings`, y luego devolvemos ese nuevo objeto.
    
    Luego podemos probar que se está usando.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  4. docs/pt/docs/advanced/settings.md

    Então seria muito fácil fornecer um objeto de configurações diferente durante os testes criando uma sobrescrita de dependência para `get_settings`:
    
    {* ../../docs_src/settings/app02_an_py39/test_main.py hl[9:10,13,21] *}
    
    Na sobrescrita da dependência definimos um novo valor para `admin_email` ao criar o novo objeto `Settings`, e então retornamos esse novo objeto.
    
    Depois podemos testar que ele é usado.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 13K bytes
    - Viewed (0)
  5. docs/zh/docs/advanced/settings.md

    然后,我们可以将其作为依赖项从“路径操作函数”中引入,并在需要时使用它。
    
    {* ../../docs_src/settings/app02_an_py39/main.py hl[17,19:21] *}
    
    ### 设置和测试
    
    然后,在测试期间,通过创建 `get_settings` 的依赖项覆盖,很容易提供一个不同的设置对象:
    
    {* ../../docs_src/settings/app02/test_main.py hl[9:10,13,21] *}
    
    在依赖项覆盖中,我们在创建新的 `Settings` 对象时为 `admin_email` 设置了一个新值,然后返回该新对象。
    
    然后,我们可以测试它是否被使用。
    
    ## 从 `.env` 文件中读取设置
    
    如果您有许多可能经常更改的设置,可能在不同的环境中,将它们放在一个文件中,然后从该文件中读取它们,就像它们是环境变量一样,可能非常有用。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  6. cmd/test-utils_test.go

    	"github.com/minio/minio/internal/crypto"
    	"github.com/minio/minio/internal/hash"
    	"github.com/minio/minio/internal/logger"
    	"github.com/minio/mux"
    	"github.com/minio/pkg/v3/policy"
    )
    
    // TestMain to set up global env.
    func TestMain(m *testing.M) {
    	flag.Parse()
    
    	// set to 'true' when testing is invoked
    	globalIsTesting = true
    
    	globalIsCICD = globalIsTesting
    
    	globalActiveCred = auth.Credentials{
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 77K bytes
    - Viewed (0)
  7. api/go1.4.txt

    pkg syscall (windows-amd64), func FullPath(string) (string, error)
    
    # CL 98150043 testing: add Coverage function, Russ Cox <******@****.***>
    pkg testing, func Coverage() float64
    
    # CL 148770043 cmd/go, testing: add TestMain support, Russ Cox <******@****.***>
    pkg testing, func MainStart(func(string, string) (bool, error), []InternalTest, []InternalBenchmark, []InternalExample) *M
    pkg testing, method (*M) Run() int
    pkg testing, type M struct
    
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Fri Dec 12 03:01:01 UTC 2014
    - 34K bytes
    - Viewed (0)
  8. docs/en/docs/release-notes.md

    ### Internal
    
    * ✅ Fix a minor bug in the test `tests/test_modules_same_name_body/test_main.py`. PR [#13411](https://github.com/fastapi/fastapi/pull/13411) by [@alv2017](https://github.com/alv2017).
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 19:06:15 UTC 2025
    - 586.7K bytes
    - Viewed (0)
Back to top