[tracker: 4/5] tests: Update tests for changed date/time formatting
- From: JÃrg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker: 4/5] tests: Update tests for changed date/time formatting
- Date: Thu, 1 Dec 2011 18:12:09 +0000 (UTC)
commit 19e63c058639c3f79f1af8dbdc304885fbf81fbf
Author: JÃrg Billeter <j bitron ch>
Date: Thu Dec 1 16:02:33 2011 +0100
tests: Update tests for changed date/time formatting
tests/functional-tests/01-insertion.py | 4 ++--
tests/functional-tests/17-ontology-changes.py | 2 +-
tests/libtracker-data/subqueries/subqueries-1.out | 4 ++--
.../subqueries/subqueries-union-2.out | 10 +++++-----
4 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/tests/functional-tests/01-insertion.py b/tests/functional-tests/01-insertion.py
index 763e433..8d9942e 100755
--- a/tests/functional-tests/01-insertion.py
+++ b/tests/functional-tests/01-insertion.py
@@ -226,7 +226,7 @@ class TrackerStoreInsertionTests (CommonTrackerStoreTest):
self.assertEquals (len (result), 1)
self.assertEquals (len (result[0]), 2)
self.assertEquals (int (result[0][0]), i)
- self.assertEquals (result[0][1], "2000-01-01T00:4%d:47.000Z" % (i))
+ self.assertEquals (result[0][1], "2000-01-01T00:4%d:47Z" % (i))
self.tracker.update ("""
DELETE { <test://instance-1> a rdfs:Resource. }
@@ -257,7 +257,7 @@ class TrackerStoreInsertionTests (CommonTrackerStoreTest):
self.assertEquals (len (result), 1)
self.assertEquals (len (result[0]), 2)
self.assertEquals (int (result[0][0]), i)
- self.assertEquals (result[0][1], "2000-01-01T00:4%d:47.000Z" % (i))
+ self.assertEquals (result[0][1], "2000-01-01T00:4%d:47Z" % (i))
self.tracker.update ("""
DELETE { <test://instance-1> a rdfs:Resource. }
diff --git a/tests/functional-tests/17-ontology-changes.py b/tests/functional-tests/17-ontology-changes.py
index 2e2d890..bbbf0ff 100755
--- a/tests/functional-tests/17-ontology-changes.py
+++ b/tests/functional-tests/17-ontology-changes.py
@@ -194,7 +194,7 @@ class PropertyRangeStringToDate (OntologyChangeTestTemplate):
# Check the value is there
result = self.tracker.query ("SELECT ?o WHERE { <%s> test:a_string ?o . }" % (self.instance))
- self.assertEquals (result[0][0], "2010-10-12T13:30:00.000Z")
+ self.assertEquals (result[0][0], "2010-10-12T13:30:00Z")
class PropertyRangeDateToString (OntologyChangeTestTemplate):
diff --git a/tests/libtracker-data/subqueries/subqueries-1.out b/tests/libtracker-data/subqueries/subqueries-1.out
index c443a3d..905166a 100644
--- a/tests/libtracker-data/subqueries/subqueries-1.out
+++ b/tests/libtracker-data/subqueries/subqueries-1.out
@@ -1,2 +1,2 @@
-"http://example.org/ns#group2" "2009-12-05T00:00:00.000Z" "http://example.org/ns#msg5" "3"
-"http://example.org/ns#group1" "2009-12-02T00:00:00.000Z" "http://example.org/ns#msg2" "2"
+"http://example.org/ns#group2" "2009-12-05T00:00:00Z" "http://example.org/ns#msg5" "3"
+"http://example.org/ns#group1" "2009-12-02T00:00:00Z" "http://example.org/ns#msg2" "2"
diff --git a/tests/libtracker-data/subqueries/subqueries-union-2.out b/tests/libtracker-data/subqueries/subqueries-union-2.out
index 838fe3b..2de3f5d 100644
--- a/tests/libtracker-data/subqueries/subqueries-union-2.out
+++ b/tests/libtracker-data/subqueries/subqueries-union-2.out
@@ -1,5 +1,5 @@
-"http://example.org/ns#msg1" "2009-12-01T00:00:00.000Z"
-"http://example.org/ns#msg2" "2009-12-02T00:00:00.000Z"
-"http://example.org/ns#msg3" "2009-12-03T00:00:00.000Z"
-"http://example.org/ns#msg4" "2009-12-04T00:00:00.000Z"
-"http://example.org/ns#msg5" "2009-12-05T00:00:00.000Z"
+"http://example.org/ns#msg1" "2009-12-01T00:00:00Z"
+"http://example.org/ns#msg2" "2009-12-02T00:00:00Z"
+"http://example.org/ns#msg3" "2009-12-03T00:00:00Z"
+"http://example.org/ns#msg4" "2009-12-04T00:00:00Z"
+"http://example.org/ns#msg5" "2009-12-05T00:00:00Z"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]