diff --git a/docs/conf.py b/docs/conf.py index 4755a4b89..3c7c43d4b 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -43,7 +43,7 @@ # General information about the project. project = u'Splunk SDK for Python' -copyright = u'2014, Splunk Inc' +copyright = u'2020, Splunk Inc' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the @@ -95,7 +95,7 @@ # a list of builtin themes. # agogo, default, epub, haiku, nature, pyramid, scrolls, sphinxdoc, traditional -html_theme = 'default' +html_theme = 'default' # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the diff --git a/tests/test_kvstore_batch.py b/tests/test_kvstore_batch.py index 816172167..14806a699 100755 --- a/tests/test_kvstore_batch.py +++ b/tests/test_kvstore_batch.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # -# Copyright 2011-2014 Splunk, Inc. +# Copyright 2011-2020 Splunk, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"): you may # not use this file except in compliance with the License. You may obtain @@ -68,7 +68,7 @@ def test_insert_find_update_data(self): self.assertEqual(testData[x][0]['_key'], str(x)) self.assertEqual(testData[x][0]['data'], '#' + str(x + 1)) self.assertEqual(testData[x][0]['num'], x + 1) - + def tearDown(self): confs = self.service.kvstore diff --git a/tests/test_kvstore_conf.py b/tests/test_kvstore_conf.py index dd7028d00..a587712e4 100755 --- a/tests/test_kvstore_conf.py +++ b/tests/test_kvstore_conf.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # -# Copyright 2011-2014 Splunk, Inc. +# Copyright 2011-2020 Splunk, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"): you may # not use this file except in compliance with the License. You may obtain @@ -54,10 +54,10 @@ def test_update_fields(self): self.confs.create('test') self.confs['test'].post(**{'field.a': 'number'}) self.assertEqual(self.confs['test']['field.a'], 'number') - self.confs['test'].update_field('a', 'string') + self.confs['test'].update_field('a', 'string') self.assertEqual(self.confs['test']['field.a'], 'string') self.confs['test'].delete() - + def test_create_unique_collection(self): self.confs.create('test') @@ -77,9 +77,9 @@ def test_overlapping_collections(self): self.confs['test'].delete() self.confs['test'].delete() - """ + """ def test_create_accelerated_fields_fields(self): - self.confs.create('test', indexes={'foo': '{"foo": 1}', 'bar': {'bar': -1}}, **{'field.foo': 'string'}) + self.confs.create('test', indexes={'foo': '{"foo": 1}', 'bar': {'bar': -1}}, **{'field.foo': 'string'}) self.assertEqual(self.confs['test']['accelerated_fields.foo'], '{"foo": 1}') self.assertEqual(self.confs['test']['field.foo'], 'string') self.assertRaises(client.HTTPError, lambda: self.confs['test'].post(**{'accelerated_fields.foo': 'THIS IS INVALID'})) @@ -87,7 +87,7 @@ def test_create_accelerated_fields_fields(self): self.confs['test'].update_accelerated_fields('foo', '') self.assertEqual(self.confs['test']['accelerated_fields.foo'], None) """ - + def tearDown(self): if ('test' in self.confs): self.confs['test'].delete() diff --git a/tests/test_kvstore_data.py b/tests/test_kvstore_data.py index 153cdd363..1551f1c69 100755 --- a/tests/test_kvstore_data.py +++ b/tests/test_kvstore_data.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # -# Copyright 2011-2014 Splunk, Inc. +# Copyright 2011-2020 Splunk, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"): you may # not use this file except in compliance with the License. You may obtain @@ -61,7 +61,7 @@ def test_update_delete_data(self): def test_query_data(self): if ('test1' in self.confs): - self.confs['test1'].delete() + self.confs['test1'].delete() self.confs.create('test1') self.col = self.confs['test1'].data for x in range(10): @@ -73,7 +73,7 @@ def test_query_data(self): self.assertEqual(data[0]['data'], '#0') data = self.col.query(limit=2, skip=9) self.assertEqual(len(data), 1) - + def test_invalid_insert_update(self): self.assertRaises(client.HTTPError, lambda: self.col.insert('NOT VALID DATA'))