mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
![]() `DUMMY_CONVERSION: True` is treated as a boolean value in YAML[1]. As a result, during GitHub CI the environment variable setup during tests is formatted as `DUMMY_CONVERSION=true`. The value is used[2] in tests and passed as the `condition` to the `pytest.mark.skipif`[3] decorator. The `skipif` `condition` can be either a `bool` or `str`. When it is a `str` (our case, as we use `os.environ.get()`), it is treated as a condition string[4] by pytest. Since the condition string is `eval()`ed[5] by pytest, trying to evaluate `true` results in: > Failed: Error evaluating 'skipif' condition > true > NameError: name 'true' is not defined To avoid the implicit conversion to a JSON boolean, or marking the "True" value as a string literal, use the value `1` instead. [1]: https://yaml.org/type/bool.html [2]: |
||
---|---|---|
.. | ||
workflows |