Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make it easier to add new envfile tests
We have 2 tests using the valid yaml. Both test need to create fake addons directories in a temporary directory. This makes it harder than needed to create new tests. Change the valid_yaml to pytest fixture returning an Env namedtuple with an open file object with the valid yaml and the path of the addons directory created by the fixture. With this creating new test requires one line to create an env. Signed-off-by: Nir Soffer <nsoffer@redhat.com>
- Loading branch information