Skip to content

Commit

Permalink
Adds lint fixes for flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
kushaldas committed Sep 24, 2020
1 parent fdc5575 commit 7aaa197
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions molecule/testinfra/app-code/test_securedrop_app_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
testinfra_hosts = [securedrop_test_vars.app_hostname]
python_version = securedrop_test_vars.python_version


def test_apache_default_docroot_is_absent(host):
"""
Ensure that the default docroot for Apache, containing static HTML
Expand Down
4 changes: 2 additions & 2 deletions molecule/testinfra/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ def securedrop_import_testinfra_vars(hostname, with_header=False):
hostvars = yaml.safe_load(f)

if os.environ.get("MOLECULE_SCENARIO_NAME").endswith("focal"):
hostvars['securedrop_venv_site_packages'] = hostvars["securedrop_venv_site_packages"].format("3.8")
hostvars['securedrop_venv_site_packages'] = hostvars["securedrop_venv_site_packages"].format("3.8") # noqa: E501
hostvars['python_version'] = "3.8"
else:
hostvars['securedrop_venv_site_packages'] = hostvars["securedrop_venv_site_packages"].format("3.5")
hostvars['securedrop_venv_site_packages'] = hostvars["securedrop_venv_site_packages"].format("3.5") # noqa: E501
hostvars['python_version'] = "3.5"

if with_header:
Expand Down

0 comments on commit 7aaa197

Please sign in to comment.