should be it

This commit is contained in:
2025-10-24 19:21:19 -05:00
parent a4b23fc57c
commit f09560c7b1
14047 changed files with 3161551 additions and 1 deletions

View File

@@ -0,0 +1,27 @@
# fmt: off
import pytest
import subprocess
import sys
from typing import List
from conftest import ShellTest
import os
@pytest.mark.skip(reason="Skip after File Logging rework")
def test_http_logging_file(shell, tmp_path):
temp_dir = tmp_path / 'http_logging_dir'
temp_dir.mkdir()
temp_file = temp_dir / 'myfile'
test = (
ShellTest(shell)
.statement("SET enable_http_logging=true;")
.statement(f"SET http_logging_output='{temp_file.as_posix()}'")
.statement("install 'http://extensions.duckdb.org/v0.10.1/osx_arm64/httpfs.duckdb_extension.gzzz';")
)
result = test.run()
with open(temp_file, 'r') as f:
file_content = f.read()
assert "HTTP Request" in file_content
assert "HTTP Response" in file_content