Skip to content

Commit

Permalink
Merge pull request #57 from keboola/odin-cs-fix
Browse files Browse the repository at this point in the history
chore: fix cs
  • Loading branch information
odinuv authored Sep 3, 2019
2 parents 8c2bb29 + 3a95ad2 commit 65c5cc6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions kbcstorage/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def create_raw(self, bucket_id, name, data_url=None, data_file_id=None,
body.update(self.validate_data_source(data_url, data_file_id,
snapshot_id, data_workspace_id,
data_table_name))
if enclosure is not '' and escaped_by is not '':
if enclosure != '' and escaped_by != '':
raise ValueError("Only one of enclosure and escaped_by may be "
"specified.")
if primary_key is not None and isinstance(primary_key, list):
Expand Down Expand Up @@ -284,7 +284,7 @@ def load_raw(self, table_id, data_url=None, data_file_id=None,
body.update(self.validate_data_source(data_url, data_file_id,
snapshot_id, data_workspace_id,
data_table_name))
if enclosure is not '' and escaped_by is not '':
if enclosure != '' and escaped_by != '':
raise ValueError("Only one of enclosure and escaped_by may be "
"specified.")
if columns is not None and isinstance(columns, list):
Expand Down
6 changes: 3 additions & 3 deletions tests/mocks/test_buckets.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

class TestBucketsWithMocks(unittest.TestCase):
def setUp(self):
token = 'dummy_token'
base_url = 'https://connection.keboola.com/'
self.buckets = Buckets(base_url, token)
token = 'dummy_token'
base_url = 'https://connection.keboola.com/'
self.buckets = Buckets(base_url, token)

@responses.activate
def test_list(self):
Expand Down

0 comments on commit 65c5cc6

Please sign in to comment.