diff options
| author | Xavier Claessens <xclaessens@netflix.com> | 2025-10-16 17:48:02 -0400 |
|---|---|---|
| committer | Xavier Claessens <xclaesse@gmail.com> | 2025-10-17 16:15:14 -0400 |
| commit | d6eca52d79f01a9ebe06c78c8577cb65311da043 (patch) | |
| tree | 0d0bf7ec80afede9f813cf7e02bbf128b15c6539 /unittests | |
| parent | 87a367c406e67d38df0946e2d780fbdf715e437a (diff) | |
| download | meson-d6eca52d79f01a9ebe06c78c8577cb65311da043.tar.gz | |
cargo: raw.Manifest can be any Cargo.toml
raw.Manifest represents any Cargo.toml file, a package, a workspace, or
both.
However, the Manifest dataclass can only be a package, and the Workspace
dataclass is a workspace with an optional root package.
Diffstat (limited to 'unittests')
| -rw-r--r-- | unittests/cargotests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unittests/cargotests.py b/unittests/cargotests.py index 01d326130..89b360512 100644 --- a/unittests/cargotests.py +++ b/unittests/cargotests.py @@ -305,7 +305,7 @@ class CargoTomlTest(unittest.TestCase): f.write(self.CARGO_TOML_WS) workspace_toml = load_toml(fname) - workspace = Workspace.from_raw(workspace_toml) + workspace = Workspace.from_raw(workspace_toml, tmpdir) pkg = Package.from_raw({'name': 'foo', 'version': {'workspace': True}}, workspace) self.assertEqual(pkg.name, 'foo') self.assertEqual(pkg.version, '0.14.0-alpha.1') @@ -319,7 +319,7 @@ class CargoTomlTest(unittest.TestCase): f.write(self.CARGO_TOML_WS) workspace_toml = load_toml(fname) - workspace = Workspace.from_raw(workspace_toml) + workspace = Workspace.from_raw(workspace_toml, tmpdir) dep = Dependency.from_raw('glib', {'workspace': True}, 'member', workspace) self.assertEqual(dep.package, 'glib') self.assertEqual(dep.version, '') |
