Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vars were not being processed for imported tests #50

Merged
merged 1 commit into from
May 31, 2015

Conversation

netjunki
Copy link

When trying to make use of the --vars option in my tests I discovered it wasn't being passed from the cli into the imported test files. This should fix that. This let's me play this trick with running my tests:

pyresttest https:// testall.yaml --vars="{'domain':'example.com'}"
In suite1.yaml (which is imported in testall.yaml)
  - url: {template: "api.$domain/test"}

Since I have dozens of test environments but I need to be able to execute the same test suite against all of them.

svanoort added a commit that referenced this pull request May 31, 2015
vars were not being processed for imported tests
@svanoort svanoort merged commit d5f8490 into svanoort:master May 31, 2015
@svanoort svanoort added the bug label Oct 3, 2015
@svanoort svanoort added this to the Release 1.5.0 milestone Oct 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants