Parcourir la source

Update the test_sink script

The recent additions to the SinkConfig class broke it, so this commit
makes it work again.
Clara Hobbs il y a 6 ans
Parent
révision
4f82d513a0
1 fichiers modifiés avec 4 ajouts et 2 suppressions
  1. 4
    2
      pdbuddy/tools/test_sink.py

+ 4
- 2
pdbuddy/tools/test_sink.py Voir le fichier

@@ -63,9 +63,11 @@ def main():
63 63
 
64 64
     # Define configurations for testing
65 65
     cfg_20v = pdbuddy.SinkConfig(status=pdbuddy.SinkStatus.VALID,
66
-            flags=pdbuddy.SinkFlags.NONE, v=20000, i=1000)
66
+            flags=pdbuddy.SinkFlags.NONE, v=20000, vmin=None, vmax=None,
67
+            i=1000, idim=pdbuddy.SinkDimension.CURRENT)
67 68
     cfg_9v = pdbuddy.SinkConfig(status=pdbuddy.SinkStatus.VALID,
68
-            flags=pdbuddy.SinkFlags.NONE, v=9000, i=1000)
69
+            flags=pdbuddy.SinkFlags.NONE, v=9000, vmin=None, vmax=None, i=1000,
70
+            idim=pdbuddy.SinkDimension.CURRENT)
69 71
 
70 72
     # Run the testing procedure
71 73
     with pdbuddy.Sink(args.tty) as sink:

Chargement…
Annuler
Enregistrer