aboutsummaryrefslogtreecommitdiff
path: root/src/argaze.test
diff options
context:
space:
mode:
authorThéo de la Hogue2024-01-18 20:41:09 +0100
committerThéo de la Hogue2024-01-18 20:41:09 +0100
commit032f3282798f2c7120cc28ffe137191838a87452 (patch)
treef6c11f1c8f3d86bdb369b4f4bd7fcf039c52e32a /src/argaze.test
parentd6f68a4adc6f8c1af0697710dfcadb8b22194f3b (diff)
downloadargaze-032f3282798f2c7120cc28ffe137191838a87452.zip
argaze-032f3282798f2c7120cc28ffe137191838a87452.tar.gz
argaze-032f3282798f2c7120cc28ffe137191838a87452.tar.bz2
argaze-032f3282798f2c7120cc28ffe137191838a87452.tar.xz
Renaming File into FileWriter.
Diffstat (limited to 'src/argaze.test')
-rw-r--r--src/argaze.test/DataLog/FileWriter.py (renamed from src/argaze.test/DataLog/File.py)10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/argaze.test/DataLog/File.py b/src/argaze.test/DataLog/FileWriter.py
index 2d66ea6..648385c 100644
--- a/src/argaze.test/DataLog/File.py
+++ b/src/argaze.test/DataLog/FileWriter.py
@@ -11,7 +11,7 @@ import unittest
import os
from argaze import DataFeatures
-from argaze.DataLog import File
+from argaze.DataLog import FileWriter
from argaze.utils import UtilsFeatures
DataFeaturesTest = UtilsFeatures.importFromTestPackage('DataFeatures')
@@ -22,15 +22,15 @@ class TestTimeStampedDataLogger(unittest.TestCase):
def test_creation(self):
"""Test logger creation."""
- file_logger = File.TimeStampedDataLogger(path='./_export/logs/data.txt', separator=',')
+ 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_logger.emit(0, 'A')
- file_logger.emit(1, 'B')
- file_logger.emit(2, 'C')
+ file_writer.emit(0, 'A')
+ file_writer.emit(1, 'B')
+ file_writer.emit(2, 'C')
if __name__ == '__main__':