xtask: update layer fixtures after PSD extraction

This commit is contained in:
Dylan M. Taylor committed 2026-11-12 06:22:13 +00:00
1 parent 92f35aa25a
commit cd0728ee2a
1 file changed
+4 -4
+4 -4
View File
@@ -302,7 +302,7 @@ mod tests {
#[test]
fn self_dev_dependency_ignored() {
assert!(check(&[c("photocraft-psd", &[("photocraft-psd", Dev, true)])]).is_empty());
assert!(check(&[c("photocraft-codecs", &[("photocraft-codecs", Dev, true)])]).is_empty());
}
#[test]
@@ -313,7 +313,7 @@ mod tests {
#[test]
fn standalone_crates_have_no_workspace_deps() {
for s in ["photocraft-psd", "photocraft-codecs", "photocraft-adobe-assets"] {
for s in ["photocraft-codecs", "photocraft-adobe-assets"] {
let v = check(&[c(s, &[("photocraft-geom", Normal, true)])]);
assert!(matches!(v[..], [Violation::StandaloneHasWorkspaceDep { .. }]), "{s}");
assert!(check(&[c(s, &[("image", Normal, false)])]).is_empty());
@@ -323,7 +323,7 @@ mod tests {
#[test]
fn standalone_crates_have_no_exceptions() {
// Standalone crates may not use each other, in either direction.
for (from, to) in [("photocraft-codecs", "photocraft-psd"), ("photocraft-psd", "photocraft-codecs")] {
for (from, to) in [("photocraft-codecs", "photocraft-adobe-assets"), ("photocraft-adobe-assets", "photocraft-codecs")] {
let v = check(&[c(from, &[(to, Normal, true)])]);
assert!(matches!(v[..], [Violation::StandaloneHasWorkspaceDep { .. }]), "{from} -> {to}");
}
@@ -334,7 +334,7 @@ mod tests {
#[test]
fn standalone_is_usable_from_higher_layers() {
assert!(check(&[c("photocraft-io", &[("photocraft-psd", Normal, true)])]).is_empty());
assert!(check(&[c("photocraft-io", &[("photocraft-codecs", Normal, true)])]).is_empty());
let v = check(&[c("photocraft-geom", &[("photocraft-codecs", Normal, true)])]);
assert!(matches!(v[..], [Violation::Upward { from: 0, to: 0, .. }]));
}