]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
flake8: fix pep8 syntax on tests/functional/tests/
authorGuillaume Abrioux <gabrioux@redhat.com>
Sun, 4 Oct 2020 08:32:45 +0000 (10:32 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 6 Oct 2020 06:54:43 +0000 (08:54 +0200)
tests/conftest.py and tests present in tests/functional/tests/ has been
missed from previous commit

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 8596f1d52c27d22d0e8b7052c9b56c0c350e7fc7)

.github/workflows/flake8.yml
tests/conftest.py
tests/functional/tests/test_install.py

index ba87e8795ace3141a3c3cc7454dad109ff4ac8ee..ead3a9912bf7272f4d12d6d95ae5fc01c56cd0d2 100644 (file)
@@ -11,4 +11,4 @@ jobs:
           python-version: 3.8
           architecture: x64
       - run: pip install flake8
-      - run: flake8 --max-line-length 160 ./library/ ./tests/library/
\ No newline at end of file
+      - run: flake8 --max-line-length 160 ./library/ ./tests/library/ ./tests/conftest.py ./tests/functional/tests/
index a03b3faaf7bdd735e653dc9d0bcd3d66cb1dd273..f928cf277ecd9f0b70e78c3465ef61c87d3eaee6 100644 (file)
@@ -14,6 +14,7 @@ def str_to_bool(val):
     else:
         raise ValueError("Invalid input value: %s" % val)
 
+
 @pytest.fixture(scope="module")
 def setup(host):
     cluster_address = ""
@@ -27,7 +28,6 @@ def setup(host):
     container_binary = ansible_vars.get("container_binary", "")
     osd_auto_discovery = ansible_vars.get("osd_auto_discovery")
     group_names = ansible_vars["group_names"]
-    fsid = ansible_vars.get("fsid")
 
     ansible_distribution = ansible_facts["ansible_facts"]["ansible_distribution"]
 
@@ -82,6 +82,7 @@ def setup(host):
 
     return data
 
+
 @pytest.fixture()
 def node(host, request):
     """
index 7e7c6de5db6265a8aa16b1aa9c8ab08f267f60aa..69f38c41d8530cfaf0c65126c7c648bab7aece20 100644 (file)
@@ -30,6 +30,7 @@ class TestCephConf(object):
                 result = False
             assert result
 
+
 class TestCephCrash(object):
     @pytest.mark.no_docker
     @pytest.mark.ceph_crash
@@ -43,4 +44,4 @@ class TestCephCrash(object):
     def test_ceph_crash_service_enabled_and_running_container(self, node, host):
         s = host.service("ceph-crash@{hostname}".format(hostname=node["vars"]["inventory_hostname"]))
         assert s.is_enabled
-        assert s.is_running
\ No newline at end of file
+        assert s.is_running