Skip to content
Snippets Groups Projects
Commit 8124e5c9 authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

DOC: Note about PYFEEDS_TESTING env var

parent bd35843a
No related branches found
No related tags found
1 merge request!37MNT: Set a `PYFEEDS_TESTING` environment variable so `feedsRun` scripts can determine whether they are being called by `pyfeeds`, or by other means.
...@@ -227,6 +227,12 @@ A `pyfeeds` test is called with three parameters: ...@@ -227,6 +227,12 @@ A `pyfeeds` test is called with three parameters:
previously-generated benchmark data for the test, if it exists. previously-generated benchmark data for the test, if it exists.
When `pyfeeds` calls a `feedsRun` script, it sets an environment variable -
`PYFEEDS_TESTING=1`. This may be useful for `feedsRun` scripts which are intended
to be callable both from `pyfeeds`, and through other means, and which need to
behave differently depending on how they are called.
## Writing your test in Python ## Writing your test in Python
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment