Skip to content

Commit

Permalink
Fix linters
Browse files Browse the repository at this point in the history
  • Loading branch information
mml5bg committed Sep 1, 2023
1 parent b932b8f commit e5ac893
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 14 deletions.
2 changes: 1 addition & 1 deletion tests/automated_tests/requirements.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pytest
parametrized
parameterized
pathlib
2 changes: 1 addition & 1 deletion tests/automated_tests/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ iniconfig==2.0.0
# via pytest
packaging==23.1
# via pytest
parametrized==0.1
parameterized==0.9.0
# via -r requirements.in
pathlib==1.0.1
# via -r requirements.in
Expand Down
31 changes: 19 additions & 12 deletions tests/automated_tests/runtime_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,33 @@

# SPDX-License-Identifier: Apache-2.0

import json
import unittest

import pytest
from parameterized import parameterized
import json

with open('.velocitas.json') as velocitas_file:
with open(".velocitas.json") as velocitas_file:
velocitas_json = json.loads(velocitas_file.read())

for package in velocitas_json['packages']:
if package['name'] == "devenv-runtimes":
package_name = package['name']
package_version = package['version']
for package in velocitas_json["packages"]:
if package["name"] == "devenv-runtimes":
package_name = package["name"]
package_version = package["version"]
break


class RuntimeTest(unittest.TestCase):
@parameterized.expand(
["runtime-local",
"runtime-k3d",
"runtime-kanto"]
)
@parameterized.expand(["runtime-local", "runtime-k3d", "runtime-kanto"])
def test_runtime(self, runtime):
pytest.main(["-s", "-x", f"/home/vscode/.velocitas/packages/{package_name}/{package_version}/{runtime}/test/integration/integration_test.py"])
pytest.main(
[
"-s",
"-x",
(
f"/home/vscode/.velocitas/packages/{package_name}/"
"{package_version}/{runtime}/test/integration/"
"integration_test.py"
),
]
)

0 comments on commit e5ac893

Please sign in to comment.