]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
improve plugins/filter testing
authorDimitri Savineau <dsavinea@redhat.com>
Fri, 27 Nov 2020 17:25:11 +0000 (12:25 -0500)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 30 Nov 2020 09:05:01 +0000 (10:05 +0100)
commitd76fbb38d5df5befc4013015c9db2501e5bb8f66
tree797853b322e01f944c8087cda6a0cd0bc36e9b53
parent0b05620597121c6388b7fbf227fb01f8efb2bda6
improve plugins/filter testing

- The plugins/filter directory wasn't present in the flake8 workflow
configuration.
- Fix the flake8 syntax.
- Add the directory to PYTHONPATH environment variable for pytest
to avoid importing the plugin filter via sys.
- Add unittest on missing netaddr module import.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
.github/workflows/flake8.yml
.github/workflows/pytest.yml
plugins/filter/ipaddrs_in_ranges.py
tests/plugins/filter/test_ipaddrs_in_ranges.py