diff options
author | Sam Thursfield <sam@afuera.me.uk> | 2020-02-08 16:01:56 +0100 |
---|---|---|
committer | Sam Thursfield <sam@afuera.me.uk> | 2020-02-17 21:58:03 +0100 |
commit | 302dc53563b0ad4c450074ed6d4b57c76d3b068e (patch) | |
tree | c87b33faacf5adf12903df07001f28db741f97e0 /tests/functional-tests/14-signals.py | |
parent | c97821b9233720b2cbe47f12b733142121ac81db (diff) | |
download | tracker-302dc53563b0ad4c450074ed6d4b57c76d3b068e.tar.gz |
libtracker-sparql: Correctly notify DELETE events
Diffstat (limited to 'tests/functional-tests/14-signals.py')
-rw-r--r-- | tests/functional-tests/14-signals.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/functional-tests/14-signals.py b/tests/functional-tests/14-signals.py index 8cf349edd..944e57a7c 100644 --- a/tests/functional-tests/14-signals.py +++ b/tests/functional-tests/14-signals.py @@ -149,6 +149,7 @@ class TrackerStoreSignalsTests (CommonTrackerStoreTest): # Validate results: self.assertEqual(len(self.results_deletes), 1) + self.assertEqual(len(self.results_updates), 1) self.assertEqual(len(self.results_inserts), 0) def test_03_update_contact(self): @@ -164,8 +165,9 @@ class TrackerStoreSignalsTests (CommonTrackerStoreTest): "INSERT { <test://signals-contact-update> nco:fullname 'wohoo'}") self.__wait_for_signal() + self.assertEqual(len(self.results_updates), 2) + self.assertEqual(len(self.results_inserts), 0) self.assertEqual(len(self.results_deletes), 0) - self.assertEqual(len(self.results_inserts), 1) def test_04_fullupdate_contact(self): self.clean_up_list.append("test://signals-contact-fullupdate") |