Replace startsWith with startswith method

The startswith method is not capitalized:
https://docs.python.org/3/library/stdtypes.html#str.startswith
pull/5544/head
Adam 2024-07-30 16:00:43 -07:00 committed by GitHub
parent 47d27a5b87
commit 4465d8562f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -282,16 +282,16 @@ status = None
# Define callbacks for write responses
def success(self, data: str):
status = "Success writing batch: data: {data}"
assert status.startsWith('Success'), f"Expected {status} to be success"
assert status.startswith('Success'), f"Expected {status} to be success"
def error(self, data: str, err: InfluxDBError):
status = f"Error writing batch: config: {self}, data: {data}, error: {err}"
assert status.startsWith('Success'), f"Expected {status} to be success"
assert status.startswith('Success'), f"Expected {status} to be success"
def retry(self, data: str, err: InfluxDBError):
status = f"Retry error writing batch: config: {self}, data: {data}, error: {err}"
assert status.startsWith('Success'), f"Expected {status} to be success"
assert status.startswith('Success'), f"Expected {status} to be success"
# Instantiate WriteOptions for batching
write_options = WriteOptions()