*** Settings ***
Documentation    Smoke tests for ProjectContextPolicy model
Resource         ${CURDIR}/common.resource
Suite Setup      Setup Test Environment
Suite Teardown   Cleanup Test Environment

*** Variables ***
${HELPER_SCRIPT}    robot/helper_project_context_policy.py

*** Test Cases ***
Context Policy Serializes Correctly
    [Documentation]    Ensure ProjectContextPolicy serializes with expected structure
    [Tags]    tdd_issue    tdd_issue_4192
    ${result}=    Run Process    ${PYTHON}    ${HELPER_SCRIPT}    resolve    cwd=${WORKSPACE}
    Should Be Equal As Integers    ${result.rc}    0
    Should Contain    ${result.stdout}    context-policy-resolve-ok

Empty Context Policy Defaults To All
    [Documentation]    Ensure empty policy defaults to including everything
    [Tags]    tdd_issue    tdd_issue_4192
    ${result}=    Run Process    ${PYTHON}    ${HELPER_SCRIPT}    empty    cwd=${WORKSPACE}
    Should Be Equal As Integers    ${result.rc}    0
    Should Contain    ${result.stdout}    context-policy-empty-ok
