read spool weight from edit dialog and write measured total back when it differs
This commit is contained in:
@@ -32,9 +32,10 @@ func TestSpoolLocation(t *testing.T) {
|
||||
if err := c.Login(ctx, email, pass); err != nil {
|
||||
t.Fatalf("login: %v", err)
|
||||
}
|
||||
loc, err := c.SpoolLocation(ctx, spoolID)
|
||||
info, err := c.SpoolInfo(ctx, spoolID)
|
||||
if err != nil {
|
||||
t.Fatalf("spool location: %v", err)
|
||||
t.Fatalf("spool info: %v", err)
|
||||
}
|
||||
t.Logf("spool %s location: %q", spoolID, loc)
|
||||
t.Logf("spool %s: location=%q total=%.0fg remaining=%.0fg emptySpool=%.0fg",
|
||||
spoolID, info.Location, info.TotalGrams, info.RemainingGrams, info.EmptySpoolGrams)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user