Skip to content

Commit ca2dc8e

Browse files
committed
update
1 parent 366a5da commit ca2dc8e

11 files changed

Lines changed: 41 additions & 326 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,4 @@ python/**/target/
3737
# Integration test output
3838
tests/integration/target/
3939
tests/integration/.venv/
40+
tests/integration/install

tests/integration/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ help:
3434
@echo " test Setup Python env + run pytest (PYTEST_ARGS=...)"
3535
@echo " clean Remove .venv and target/tests output"
3636

37-
$(VENV)/.installed: requirements.txt $(PYTHON_ROOT)/functionstream-api/pyproject.toml $(PYTHON_ROOT)/functionstream-client/pyproject.toml
37+
install $(VENV)/.installed: requirements.txt $(PYTHON_ROOT)/functionstream-api/pyproject.toml $(PYTHON_ROOT)/functionstream-client/pyproject.toml
3838
$(call log,ENV,Setting up Python virtual environment)
3939
@test -d $(VENV) || python3 -m venv $(VENV)
4040
@$(PIP) install --quiet --upgrade pip
@@ -44,7 +44,7 @@ $(VENV)/.installed: requirements.txt $(PYTHON_ROOT)/functionstream-api/pyproject
4444
@touch $@
4545
$(call success,Python environment ready)
4646

47-
test: $(VENV)/.installed
47+
test: install
4848
$(call log,TEST,Running integration tests)
4949
@$(PY) -m pytest -v $(PYTEST_ARGS)
5050
$(call success,All integration tests passed)

tests/integration/install

Whitespace-only changes.

tests/integration/test/conftest.py

Lines changed: 0 additions & 31 deletions
This file was deleted.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Licensed under the Apache License, Version 2.0 (the "License");
2+
# you may not use this file except in compliance with the License.
3+
4+
import sys
5+
from pathlib import Path
6+
7+
import pytest
8+
9+
sys.path.insert(0, str(Path(__file__).resolve().parents[2]))
10+
11+
from framework import FunctionStreamInstance
12+
13+
14+
@pytest.fixture
15+
def fs_instance(request):
16+
"""Provides a fresh FunctionStreamInstance per test. Not started automatically."""
17+
instance = FunctionStreamInstance(test_name=request.node.name)
18+
yield instance
19+
instance.kill()

tests/integration/test/test_client.py

Lines changed: 0 additions & 38 deletions
This file was deleted.

tests/integration/test/test_config.py

Lines changed: 0 additions & 85 deletions
This file was deleted.

tests/integration/test/test_lifecycle.py

Lines changed: 0 additions & 72 deletions
This file was deleted.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Licensed under the Apache License, Version 2.0 (the "License");
2+
# you may not use this file except in compliance with the License.
3+
4+
import sys
5+
from pathlib import Path
6+
7+
import pytest
8+
9+
sys.path.insert(0, str(Path(__file__).resolve().parents[2]))
10+
11+
from framework import FunctionStreamInstance
12+
13+
14+
@pytest.fixture
15+
def fs_instance(request):
16+
"""Provides a fresh FunctionStreamInstance per test. Not started automatically."""
17+
instance = FunctionStreamInstance(test_name=request.node.name)
18+
yield instance
19+
instance.kill()

tests/integration/test/wasm/test_function_lifecycle.py

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)