Skip to content

Dynamic disabling behavior ignored in CLI with pre scripts #246

Closed
@gerukin

Description

Given this test file:

{{
  httpRegion.metaData.disabled = true
}}

### Test 1
https://httpbin.org/status/200

Or the variant which executes before every request:

{{+
  httpRegion.metaData.disabled = true
}}

### Test 1
https://httpbin.org/status/200

Running:

httpyac --all ./requests/bugs/246.http --output short

I get the following in the CLI:

---------------------

=== Test 1 ===

GET https://httpbin.org/status/200
=> 200 (731 ms, 184 B)

I expected the request to be ignored. Not sure if I'm doing something wrong but, see the related issue regarding some interesting vscode behavior.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions