summaryrefslogtreecommitdiff
path: root/tests/functional-tests/test_fts_functions.py
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2023-02-13 14:13:03 +0100
committerSam Thursfield <sam.thursfield@codethink.co.uk>2023-02-13 14:55:16 +0100
commit9d829ace3e5f4e215a32dbd5fc1939abea2a64fa (patch)
treefd1ddd11755b8141b9b792e1dc28085b2179ec2c /tests/functional-tests/test_fts_functions.py
parent39856ca30aae7c21d01c778196286ca6c67484d2 (diff)
downloadtracker-9d829ace3e5f4e215a32dbd5fc1939abea2a64fa.tar.gz
functional-tests: Reformat code using Black formatter
The Python community are mostly using a standard code style defined by `black` tool these days, let's do the same.
Diffstat (limited to 'tests/functional-tests/test_fts_functions.py')
-rw-r--r--tests/functional-tests/test_fts_functions.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/functional-tests/test_fts_functions.py b/tests/functional-tests/test_fts_functions.py
index e1b33bc1c..761d857ba 100644
--- a/tests/functional-tests/test_fts_functions.py
+++ b/tests/functional-tests/test_fts_functions.py
@@ -25,10 +25,11 @@ import unittest as ut
import fixtures
-class TestFTSFunctions (fixtures.TrackerSparqlDirectTest):
+class TestFTSFunctions(fixtures.TrackerSparqlDirectTest):
"""
Insert data with text and check the fts:xxxx functions are returning the expected results
"""
+
@ut.skip("Test currently fails.")
def test_fts_rank(self):
"""
@@ -111,10 +112,9 @@ class TestFTSFunctions (fixtures.TrackerSparqlDirectTest):
results = self.tracker.query(query)
self.assertEqual(len(results), 3)
- self.assertEqual(results[0][0], 'nco:fullname,0,nco:nickname,0')
- self.assertEqual(results[1][0], 'nco:fullname,0')
- self.assertEqual(
- results[2][0], 'nco:fullname,0,nco:nickname,0,nco:nickname,10')
+ self.assertEqual(results[0][0], "nco:fullname,0,nco:nickname,0")
+ self.assertEqual(results[1][0], "nco:fullname,0")
+ self.assertEqual(results[2][0], "nco:fullname,0,nco:nickname,0,nco:nickname,10")
delete_sparql = """
DELETE {
@@ -126,5 +126,5 @@ class TestFTSFunctions (fixtures.TrackerSparqlDirectTest):
self.tracker.update(delete_sparql)
-if __name__ == '__main__':
+if __name__ == "__main__":
fixtures.tracker_test_main()