diff options
| author | Silvan Mosberger <contact@infinisil.com> | 2022-08-08 20:12:56 +0200 |
|---|---|---|
| committer | Silvan Mosberger <contact@infinisil.com> | 2022-08-08 20:20:10 +0200 |
| commit | fbe194fdf6e577468bc38a5ee0bd77d130ddca49 (patch) | |
| tree | d4cde0df58807eb870dc051e734bac29d50e85f4 /pkgs/development/python-modules/python-mapnik | |
| parent | d1949b739a57845d0c4a4d4a79ef41620269edd3 (diff) | |
bats: Add library wrapper
Adds a `bats.withLibraries (p: [ ... ])` function, which creates a
`bats` wrapper where the `BATS_LIB_PATH` environment variable contains
fallbacks for the given list of libraries.
This allows to e.g. use the `bats-assert` library (which itself requires the
`bats-support` library) with
bats.withLibraries (p: [ p.bats-support p.bats-assert ])
In a `.bats` file you can then call `bats_load_library` [1] to load the
libraries in the `setup()` function:
setup() {
bats_load_library bats-support
bats_load_library bats-assert
}
[1]: https://bats-core.readthedocs.io/en/stable/writing-tests.html?highlight=library#bats-load-library-load-system-wide-libraries
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik')
0 files changed, 0 insertions, 0 deletions
