Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for Unsetenv (0.04 seconds)

  1. tests/test_tutorial/test_conditional_openapi/test_tutorial001.py

        importlib.reload(tutorial001_py310)
    
        client = TestClient(tutorial001_py310.app)
        return client
    
    
    def test_disable_openapi(monkeypatch):
        monkeypatch.setenv("OPENAPI_URL", "")
        # Load the client after setting the env var
        client = get_client()
        response = client.get("/openapi.json")
        assert response.status_code == 404, response.text
        response = client.get("/docs")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 1.8K bytes
    - Click Count (0)
  2. src/archive/zip/reader_test.go

    			continue
    		}
    		if got := fi.ModTime(); !got.Equal(test.want) {
    			t.Errorf("%s: got modtime %v, want %v", test.name, got, test.want)
    		}
    	}
    }
    
    func TestCVE202127919(t *testing.T) {
    	t.Setenv("GODEBUG", "zipinsecurepath=0")
    	// Archive containing only the file "../test.txt"
    	data := []byte{
    		0x50, 0x4b, 0x03, 0x04, 0x14, 0x00, 0x08, 0x00,
    		0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Thu Jan 15 18:35:56 GMT 2026
    - 57.9K bytes
    - Click Count (0)
Back to Top