Skip to content

Commit cabc6ea

Browse files
afrischkgreenbonebot
authored andcommitted
Fix: Use 'Array' in cargo tests instead of 'Table'
1 parent 57ca3c2 commit cabc6ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/version/commands/test_cargo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def __create_cargo_layout(self) -> Iterator[Path]:
5151
workspace.write_text(WORKSPACE_EXAMPLE)
5252
toml_file = tomlkit.parse(WORKSPACE_EXAMPLE)
5353
members = toml_file["workspace"]["members"] # type: ignore[index, arg-type]
54-
if isinstance(members, tomlkit.items.Table):
54+
if isinstance(members, tomlkit.items.Array):
5555
for cargo_workspace_member in members:
5656
npath = temporary_dir / f"{cargo_workspace_member}"
5757
npath.mkdir()

0 commit comments

Comments
 (0)