sherlockbeard
04/19/2024, 5:56 PMsherlockbeard
04/19/2024, 6:04 PMjay
04/19/2024, 7:00 PMSammy Sidhu
04/19/2024, 7:01 PMsherlockbeard
04/20/2024, 5:11 AMSammy Sidhu
04/20/2024, 5:56 AMuv
, you should also be able to run pip install -r requirements-dev.txt
Sammy Sidhu
04/20/2024, 5:57 AMaws_server_ip = '127.0.0.1', aws_server_port = 5000, aws_log_file = <_io.TextIOWrapper name='/tmp/pytest-of-sammy/pytest-5/aws_logging0/aws_log.txt' mode='w' encoding='UTF-8'>
@pytest.fixture(scope="session")
def aws_server(aws_server_ip: str, aws_server_port: int, aws_log_file: io.IOBase) -> Iterator[str]:
# NOTE(Clark): The background-threaded moto server tends to lock up under concurrent access, so we run a background
# moto_server process.
aws_server_url = f"http://{aws_server_ip}:{aws_server_port}"
old_env = os.environ.copy()
# Set required AWS environment variables before starting server.
# Required to opt out of concurrent writing, since we don't provide a LockClient.
os.environ["AWS_S3_ALLOW_UNSAFE_RENAME"] = "true"
try:
# Start moto server.
process = start_service(aws_server_ip, aws_server_port, aws_log_file)
yield aws_server_url
finally:
# Shutdown moto server.
> stop_process(process)
E UnboundLocalError: local variable 'process' referenced before assignment
tests/io/delta_lake/conftest.py:259: UnboundLocalError
============================================================================================================== short test summary info ==============================================================================================================
ERROR tests/io/delta_lake/test_table_read.py::test_deltalake_read_full[s3_path-1-unpartitioned-None] - UnboundLocalError: local variable 'process' referenced before assignment
Sammy Sidhu
04/20/2024, 5:57 AMsherlockbeard
04/20/2024, 6:01 AMsherlockbeard
04/20/2024, 6:05 AMSammy Sidhu
04/20/2024, 6:05 AMSammy Sidhu
04/20/2024, 6:05 AMSammy Sidhu
04/20/2024, 6:06 AMSammy Sidhu
04/20/2024, 6:09 AMtests/io/delta_lake/test_table_read_pushdowns.py
sherlockbeard
04/20/2024, 6:11 AMSammy Sidhu
04/20/2024, 6:13 AMsherlockbeard
04/21/2024, 10:18 AMsherlockbeard
04/21/2024, 10:49 AMpytest --ignore tests/integration -r s
================================================================== test session starts ===================================================================
platform linux -- Python 3.7.17, pytest-7.4.3, pluggy-1.2.0
benchmark: 4.0.0 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
rootdir: /usr/Daft
configfile: pyproject.toml
testpaths: tests
plugins: cov-4.1.0, benchmark-4.0.0, hypothesis-6.79.2, lazy-fixture-0.6.3
collected 0 items / 1 skipped
================================================================ short test summary info =================================================================
SKIPPED [1] tests/io/delta_lake/conftest.py:25: could not import 'deltalake': No module named 'deltalake'