-
Notifications
You must be signed in to change notification settings - Fork 96
Shorten test names and prevent unintentional duplicate test names #1732
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 2 commits
b037b5a
5b2d8ab
dbcf64b
3079542
7748a25
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -69,7 +69,7 @@ def test_target_open( | |
| "_data/loaders/vmsupport/esx-localhost8-2026-01-09--16.04-135806.tgz", | ||
| ], | ||
| ) | ||
| def test_compressed_tar(data_path: str) -> None: | ||
| def test_vmsupport_compressed_tar(data_path: str) -> None: | ||
| """Test if we map a compressed vm support tar image correctly.""" | ||
| path = absolute_path(data_path) | ||
|
|
||
|
|
@@ -88,7 +88,7 @@ def test_compressed_tar(data_path: str) -> None: | |
| assert b"/resourceGroups/version" in test_file.open().read() | ||
|
|
||
|
|
||
| def test_dir(mock_vmsupport_dir: Path) -> None: | ||
| def test_dir_vmsupport(mock_vmsupport_dir: Path) -> None: | ||
|
JSCU-CNI marked this conversation as resolved.
Outdated
|
||
| """Test if we map an extracted vm support directory correctly.""" | ||
| loader = loader_open(mock_vmsupport_dir) | ||
| assert isinstance(loader, VmSupportLoader) | ||
|
|
@@ -112,7 +112,7 @@ def test_dir(mock_vmsupport_dir: Path) -> None: | |
| ], | ||
| ) | ||
| @pytest.mark.benchmark | ||
| def test_benchmark(benchmark: BenchmarkFixture, archive: str, loader: type[Loader]) -> None: | ||
| def test_benchmark_vmsupport(benchmark: BenchmarkFixture, archive: str, loader: type[Loader]) -> None: | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wouldn't
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was under the impression
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Me too 😄 idk man. Keep these as-is then. Maybe worth adding a check that |
||
| file = absolute_path(archive) | ||
|
|
||
| benchmark(lambda: loader(file).map(Target())) | ||
Uh oh!
There was an error while loading. Please reload this page.