Skip to content

Commit

Permalink
Fixed formatting for PEP-8
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Nix committed Jul 23, 2020
1 parent ed35cae commit d0d9869
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ script:
- pytest -m "not ci_exempt"
deploy:
provider: pypi
skip_existing: true
username: "__token__"
password:
secure: elUVF8eM62pndd9HgRVvEaCwHUxHm48enZx9HxQloup3Mqvfcn8kESyG+ValoO7rrOJHfehPYkbnlLid/64+IXbVEjsbmbls9wab/ok5wkxTYXz/UWPxrFFkcOrql2O1/oDnCO/CWOMxjLdh3IcK9xyLOgvso9i5Fk6qnCnEuclxBD7wC+qEj0qrIBphbB05UgQz0kL75tpbm1wvP8Rce740e4QdowWZZGMCKVEaC6KcvZzeQsNXGlHvObXHSZ5Ku+rspmNIUPdWQG+7l/cVnXo9QG2q+2rys8sHUKwVtzlR9HsZ7Qr5gDMsgthJccOEV7AlDhxTgjIfArSPp0CgiUeLr/tIbupJL6PYdclX3bXo7Ai60T8PwDqAX3qBeuTTD2c8PUd1Mbse9iOOjBZJsduN8jggoDT37GIEOo0fmO3QQRVwGqEN+S4YQbEZ/bUNaSjmyx3kFM4rNaSphT6IBgYQ6CeTTth7iiLnIzxdj26NRDGYw8sVIyfFw5YdtD/dOP8pFvt2HpP3F7BSIQ6srI64tRPUGu/yRevc9IeaeirS12p8YRZv6vsns6SIbwJ09OKi8PDSywNKKNvdWT4KS6g+0u0Kpwxoroh+vllCZiKVRVSuSqym3Er3T4PqJHjIqaPmwFmXyf2xBN6gD83xKS3MTmi8aXPTjycKNuAST+o=
22 changes: 11 additions & 11 deletions tests/api/test_vulnerability.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,28 +27,28 @@ def test_vulnerability_api_object_creation(api):

def test_vulnerability_api_get_container_evaluations_by_date(api):
response = api.vulnerabilities.get_container_evaluations_by_date(start_time=start_time,
end_time=end_time)
end_time=end_time)
assert response["ok"]


def test_vulnerability_api_get_container_vulnerabilities(api):
response = api.vulnerabilities.get_container_vulnerabilities(image_digest="sha256:123",
start_time=start_time,
end_time=end_time)
start_time=start_time,
end_time=end_time)
assert response["ok"]


@pytest.mark.ci_exempt
def test_vulnerability_api_initiate_container_scan(api):
response = api.vulnerabilities.initiate_container_scan("index.docker.io",
"alannix/vulnerable-struts",
"latest")
"alannix/vulnerable-struts",
"latest")
assert response["ok"]


def test_vulnerability_api_get_host_vulnerabilities_date(api):
response = api.vulnerabilities.get_host_vulnerabilities(start_time=start_time,
end_time=end_time)
end_time=end_time)
assert response["ok"]


Expand All @@ -64,7 +64,7 @@ def test_vulnerability_api_get_host_vulnerabilities_severity(api):

def test_vulnerability_api_get_host_vulnerabilities_by_cve(api):
host_vulnerabilities = api.vulnerabilities.get_host_vulnerabilities(start_time=start_time,
end_time=end_time)
end_time=end_time)

if len(host_vulnerabilities["data"]):
cve_name = random.choice(host_vulnerabilities["data"])["cve_id"]
Expand All @@ -77,7 +77,7 @@ def test_vulnerability_api_get_host_vulnerabilities_by_cve(api):

def test_vulnerability_api_get_host_vulnerabilities_by_machine_id(api):
host_vulnerabilities = api.vulnerabilities.get_host_vulnerabilities(start_time=start_time,
end_time=end_time)
end_time=end_time)

if len(host_vulnerabilities["data"]):
cve_name = random.choice(host_vulnerabilities["data"])["cve_id"]
Expand All @@ -92,9 +92,9 @@ def test_vulnerability_api_get_host_vulnerabilities_by_machine_id(api):
@pytest.mark.ci_exempt
def test_vulnerability_api_initiate_package_scan(api):
response = api.vulnerabilities.initiate_package_scan(os="Ubuntu",
os_version="18.04",
package="openssl",
package_version="1.1.1-1ubuntu2.1~18.04.5")
os_version="18.04",
package="openssl",
package_version="1.1.1-1ubuntu2.1~18.04.5")
assert response["ok"]


Expand Down

0 comments on commit d0d9869

Please sign in to comment.