Skip to content

Commit

Permalink
style: apply automated linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lars-reimann authored and github-actions[bot] committed Mar 19, 2023
1 parent bc73aea commit 3ee04ae
Showing 1 changed file with 69 additions and 13 deletions.
82 changes: 69 additions & 13 deletions tests/library_analyzer/cli/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,93 @@

def test_cli_api() -> None:
subprocess.run(
["poetry", "run", "analyze-library", "api", "-p", "library_analyzer", "-s", "src", "-o", "out"],
check=True
[
"poetry",
"run",
"analyze-library",
"api",
"-p",
"library_analyzer",
"-s",
"src",
"-o",
"out",
],
check=True,
)


def test_cli_usages() -> None:
subprocess.run(
["poetry", "run", "analyze-library", "usages", "-p", "library_analyzer", "-c", "library_analyzer", "-o", "out"],
check=True
[
"poetry",
"run",
"analyze-library",
"usages",
"-p",
"library_analyzer",
"-c",
"library_analyzer",
"-o",
"out",
],
check=True,
)


def test_cli_annotations() -> None:
subprocess.run(
["poetry", "run", "analyze-library", "annotations", "-a", "tests/data/removeAnnotations/api_data.json", "-u",
"tests/data/removeAnnotations/usage_data.json", "-o", "out/annotations.json"],
check=True
[
"poetry",
"run",
"analyze-library",
"annotations",
"-a",
"tests/data/removeAnnotations/api_data.json",
"-u",
"tests/data/removeAnnotations/usage_data.json",
"-o",
"out/annotations.json",
],
check=True,
)


def test_cli_all() -> None:
subprocess.run(
["poetry", "run", "analyze-library", "all", "-p", "library_analyzer", "-s", "src", "-c",
"library_analyzer", "-o", "out"],
check=True
[
"poetry",
"run",
"analyze-library",
"all",
"-p",
"library_analyzer",
"-s",
"src",
"-c",
"library_analyzer",
"-o",
"out",
],
check=True,
)


def test_cli_migration() -> None:
subprocess.run(
["poetry", "run", "analyze-library", "migrate", "-a1", "tests/data/migration/apiv1_data.json", "-a2",
"tests/data/migration/apiv2_data.json", "-a", "tests/data/migration/annotationv1.json", "-o", "out"],
check=True
[
"poetry",
"run",
"analyze-library",
"migrate",
"-a1",
"tests/data/migration/apiv1_data.json",
"-a2",
"tests/data/migration/apiv2_data.json",
"-a",
"tests/data/migration/annotationv1.json",
"-o",
"out",
],
check=True,
)

0 comments on commit 3ee04ae

Please sign in to comment.