aboutsummaryrefslogtreecommitdiff
path: root/src/argaze.test/DataStructures.py
diff options
context:
space:
mode:
authorThéo de la Hogue2023-08-09 18:44:24 +0200
committerThéo de la Hogue2023-08-09 18:44:24 +0200
commit28932f77f37b1550d106c99997d3bb94fac9a135 (patch)
tree2fa889940e80cf6dc01058598c55961b808d147c /src/argaze.test/DataStructures.py
parent8bf3effdefaec8eec5acbe4f146748feb2edb2ab (diff)
parentca48b61c608e21c9f258125baa0dc84976f74562 (diff)
downloadargaze-28932f77f37b1550d106c99997d3bb94fac9a135.zip
argaze-28932f77f37b1550d106c99997d3bb94fac9a135.tar.gz
argaze-28932f77f37b1550d106c99997d3bb94fac9a135.tar.bz2
argaze-28932f77f37b1550d106c99997d3bb94fac9a135.tar.xz
Merge branch 'dev-screen' of ssh://git.recherche.enac.fr/interne-ihm-aero/eye-tracking/argaze into dev-screen
Diffstat (limited to 'src/argaze.test/DataStructures.py')
-rw-r--r--src/argaze.test/DataStructures.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/argaze.test/DataStructures.py b/src/argaze.test/DataStructures.py
index ca46d5e..8533af3 100644
--- a/src/argaze.test/DataStructures.py
+++ b/src/argaze.test/DataStructures.py
@@ -202,27 +202,6 @@ class TestTimeStampedBufferClass(unittest.TestCase):
self.assertEqual(len(ts_buffer), 2)
self.assertEqual(ts_buffer.first, (2, "C"))
- def test_keep_until(self):
- """Test TimeStampedBuffer keep_until method."""
-
- ts_buffer = DataStructures.TimeStampedBuffer({0: "A", 1: "B", 2: "C", 3: "D"})
-
- # Check keep_until an existing timestamp
- keep_until_2 = ts_buffer.keep_until(2)
-
- self.assertEqual(keep_until_2, (2, "C"))
- self.assertEqual(len(ts_buffer), 3)
- self.assertEqual(ts_buffer.last, (2, "C"))
-
- # Check keep_until an none existing timestamp
- ts_buffer = DataStructures.TimeStampedBuffer({0: "A", 1: "B", 2: "C", 3: "D"})
-
- keep_until_1dot5 = ts_buffer.keep_until(1.5)
-
- self.assertEqual(keep_until_1dot5, (2, "C"))
- self.assertEqual(len(ts_buffer), 3)
- self.assertEqual(ts_buffer.last, (2, "C"))
-
def test_last(self):
"""Test TimeStampedBuffer last property."""