Skip to content

Commit be1ed43

Browse files
committed
Restore transform star exports
1 parent dd7b75c commit be1ed43

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

‎src/openstatspec/transform/__init__.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,15 @@
2020
__all__ = [
2121
"AssignOperation", "BooleanExpression", "ComparisonExpression",
2222
"ConditionalAssignOperation", "CreateVariableOperation", "DeleteVariableOperation",
23-
"PredicateExpression",
23+
"ExecuteOperation", "Operand", "PredicateExpression",
2424
"BoundTransformation",
2525
"RecodeMatch", "RecodeOperation", "RecodeResult",
2626
"RecodeRule", "ReplaceValueLabelsOperation", "SPSS_FRONTEND_CONTRACT",
2727
"SetFormatOperation", "SetMeasurementLevelOperation",
2828
"SetVariableLabelOperation", "SourcePosition", "SourceSpan", "StorageKind",
2929
"SpssFrontendCompilation",
30-
"SpssSyntaxProgram", "TRANSFORMATION_PLAN_CONTRACT", "TransformationFrontendError",
30+
"SpssSyntaxProgram", "TRANSFORMATION_PLAN_CONTRACT",
31+
"TRANSFORMATION_PLAN_SCHEMA_CHANGE_CONTRACT", "TransformationFrontendError",
3132
"TransformationPlan", "TypedValue", "ValueLabel",
3233
"VariableDefinition",
3334
"VariableSchema", "bind_spss_syntax", "bind_transformation_plan",

‎tests/test_transform_frontend.py‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from pathlib import Path
66

77
import pytest
8+
import openstatspec.transform as transform_module
89
from openstatspec.frontends.spss import (
910
bind_spss_syntax,
1011
compile_spss_syntax,
@@ -32,6 +33,14 @@
3233
)
3334

3435

36+
def test_transform_star_exports_keep_public_plan_nodes() -> None:
37+
assert {
38+
"ExecuteOperation",
39+
"Operand",
40+
"TRANSFORMATION_PLAN_SCHEMA_CHANGE_CONTRACT",
41+
}.issubset(transform_module.__all__)
42+
43+
3544
def _schema(*variables: VariableDefinition) -> VariableSchema:
3645
return VariableSchema(tuple(variables))
3746

0 commit comments

Comments
 (0)