Skip to content

Commit

Permalink
Update copyright years to 2020
Browse files Browse the repository at this point in the history
  • Loading branch information
amysutedja committed Sep 22, 2020
1 parent ef5e40e commit 1f0a076
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tests/test_kvstore_batch.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions tests/test_kvstore_conf.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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')
Expand All @@ -77,17 +77,17 @@ 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'}))
self.assertEqual(self.confs['test']['accelerated_fields.foo'], '{"foo": 1}')
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()
Expand Down
6 changes: 3 additions & 3 deletions tests/test_kvstore_data.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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):
Expand All @@ -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'))
Expand Down

0 comments on commit 1f0a076

Please sign in to comment.