aboutsummaryrefslogtreecommitdiff
path: root/src/argaze.test/DataLog/FileWriter.py
diff options
context:
space:
mode:
authorThéo de la Hogue2024-02-29 00:33:27 +0100
committerThéo de la Hogue2024-02-29 00:33:27 +0100
commite9788440bfea28bec77ef43abc407885b1c50ae8 (patch)
treef8439c9fc831d74a290291c67bf80ec610457d6d /src/argaze.test/DataLog/FileWriter.py
parent2b4811601c7eb1debec4c25fb0b0896aa15f9596 (diff)
downloadargaze-e9788440bfea28bec77ef43abc407885b1c50ae8.zip
argaze-e9788440bfea28bec77ef43abc407885b1c50ae8.tar.gz
argaze-e9788440bfea28bec77ef43abc407885b1c50ae8.tar.bz2
argaze-e9788440bfea28bec77ef43abc407885b1c50ae8.tar.xz
Making DataFeatures test to work again.
Diffstat (limited to 'src/argaze.test/DataLog/FileWriter.py')
-rw-r--r--src/argaze.test/DataLog/FileWriter.py37
1 files changed, 0 insertions, 37 deletions
diff --git a/src/argaze.test/DataLog/FileWriter.py b/src/argaze.test/DataLog/FileWriter.py
deleted file mode 100644
index 648385c..0000000
--- a/src/argaze.test/DataLog/FileWriter.py
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/usr/bin/env python
-
-""" """
-
-__author__ = "Théo de la Hogue"
-__credits__ = []
-__copyright__ = "Copyright 2023, Ecole Nationale de l'Aviation Civile (ENAC)"
-__license__ = "BSD"
-
-import unittest
-import os
-
-from argaze import DataFeatures
-from argaze.DataLog import FileWriter
-from argaze.utils import UtilsFeatures
-
-DataFeaturesTest = UtilsFeatures.importFromTestPackage('DataFeatures')
-
-class TestTimeStampedDataLogger(unittest.TestCase):
- """Test DataLogger class."""
-
- def test_creation(self):
- """Test logger creation."""
-
- file_writer = FileWriter.TimeStampedDataLogger(path='./_export/logs/data.txt', separator=',')
-
- # Check file creation
- self.assertEqual(os.path.exists('./_export/logs/data.txt'), True)
-
- # Write into file
- file_writer.emit(0, 'A')
- file_writer.emit(1, 'B')
- file_writer.emit(2, 'C')
-
-if __name__ == '__main__':
-
- unittest.main() \ No newline at end of file