[chronojump/chronojump-importer] Adds new unit test.
- From: Carles Pina i Estany <carlespina src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump/chronojump-importer] Adds new unit test.
- Date: Sun, 4 Sep 2016 18:56:35 +0000 (UTC)
commit 7d86ca8a6659f3960b00268f82fac96f36814090
Author: Carles Pina i Estany <carles pina cat>
Date: Sun Sep 4 19:55:59 2016 +0100
Adds new unit test.
This unit test tests that we re-use a Person77 (based on the name).
.../chronojump_importer_test.py | 4 +++-
.../tests/generic-destination-b.sqlite | Bin 0 -> 55296 bytes
.../tests/generic-expected-b.sqlite | Bin 0 -> 58368 bytes
.../tests/generic-source-b.sqlite | Bin 0 -> 68608 bytes
4 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/chronojump-importer/chronojump_importer_test.py
b/src/chronojump-importer/chronojump_importer_test.py
index e862f98..e0d08d4 100755
--- a/src/chronojump-importer/chronojump_importer_test.py
+++ b/src/chronojump-importer/chronojump_importer_test.py
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
import unittest
import chronojump_importer
import os
@@ -16,7 +18,7 @@ class TestImporter(unittest.TestCase):
def test_importerGeneric(self):
# lists the names. They will expand to generic-destination-X.sqlite / generic-source-X.sqlite /
generic-expected-X.sqlite
- generic_tests = ["a"]
+ generic_tests = ["a", "b"]
for generic_test in generic_tests:
source_file_name = "generic-source-{}.sqlite".format(generic_test)
diff --git a/src/chronojump-importer/tests/generic-destination-b.sqlite
b/src/chronojump-importer/tests/generic-destination-b.sqlite
new file mode 100644
index 0000000..bafbc5e
Binary files /dev/null and b/src/chronojump-importer/tests/generic-destination-b.sqlite differ
diff --git a/src/chronojump-importer/tests/generic-expected-b.sqlite
b/src/chronojump-importer/tests/generic-expected-b.sqlite
new file mode 100644
index 0000000..ceab57c
Binary files /dev/null and b/src/chronojump-importer/tests/generic-expected-b.sqlite differ
diff --git a/src/chronojump-importer/tests/generic-source-b.sqlite
b/src/chronojump-importer/tests/generic-source-b.sqlite
new file mode 100644
index 0000000..546a2e8
Binary files /dev/null and b/src/chronojump-importer/tests/generic-source-b.sqlite differ
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]