[chronojump] Adds two chronojump_importer unit tests.
- From: Carles Pina i Estany <carlespina src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Adds two chronojump_importer unit tests.
- Date: Mon, 10 Oct 2016 17:23:04 +0000 (UTC)
commit 18aef278128211650051b504419f167f87c534b9
Author: Carles Pina i Estany <carles pina cat>
Date: Mon Oct 10 17:58:10 2016 +0200
Adds two chronojump_importer unit tests.
.../chronojump_importer_test.py | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/chronojump-importer/chronojump_importer_test.py
b/src/chronojump-importer/chronojump_importer_test.py
index 01b4386..2653452 100755
--- a/src/chronojump-importer/chronojump_importer_test.py
+++ b/src/chronojump-importer/chronojump_importer_test.py
@@ -90,6 +90,14 @@ class TestImporter(unittest.TestCase):
def test_import_encoder(self):
pass
+ def test_encoder_filename(self):
+ new_filename = chronojump_importer.ImportSession._encoder_filename(10, "19-test.txt")
+ self.assertEqual("10-test.txt", new_filename)
+
+ def test_encoder_url(self):
+ new_url = chronojump_importer.ImportSession._encoder_url(11, "signal")
+ self.assertEqual("encoder/data/11/signal", new_url)
+
def test_databaseVersion(self):
database_file = "tests/yoyo-source.sqlite"
information = chronojump_importer.json_information(database_file)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]