-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SK-1731: Fixed test cases for inconsistencies
- Loading branch information
1 parent
6cc94d7
commit 43067e6
Showing
11 changed files
with
43 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
class GetResponse: | ||
def __init__(self, data=None, error = None): | ||
def __init__(self, data=None, errors = None): | ||
self.data = data if data else [] | ||
self.error = error | ||
self.errors = errors | ||
|
||
def __repr__(self): | ||
return f"GetResponse(data={self.data}, errors={self.error})" | ||
return f"GetResponse(data={self.data}, errors={self.errors})" | ||
|
||
def __str__(self): | ||
return self.__repr__() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
class InsertResponse: | ||
def __init__(self, inserted_fields = None, error_data=None): | ||
if error_data is None: | ||
error_data = list() | ||
def __init__(self, inserted_fields = None, errors=None): | ||
if errors is None: | ||
errors = list() | ||
self.inserted_fields = inserted_fields | ||
self.error_data = error_data | ||
self.errors = errors | ||
|
||
def __repr__(self): | ||
return f"InsertResponse(inserted_fields={self.inserted_fields}, errors={self.error_data})" | ||
return f"InsertResponse(inserted_fields={self.inserted_fields}, errors={self.errors})" | ||
|
||
def __str__(self): | ||
return self.__repr__() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
class QueryResponse: | ||
def __init__(self): | ||
self.fields = [] | ||
self.error = [] | ||
self.errors = [] | ||
|
||
def __repr__(self): | ||
return f"QueryResponse(fields={self.fields}, errors={self.error})" | ||
return f"QueryResponse(fields={self.fields}, errors={self.errors})" | ||
|
||
def __str__(self): | ||
return self.__repr__() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
class UpdateResponse: | ||
def __init__(self, updated_field = None, error=None): | ||
def __init__(self, updated_field = None, errors=None): | ||
self.updated_field = updated_field | ||
self.error = error if error is not None else [] | ||
self.errors = errors if errors is not None else [] | ||
|
||
def __repr__(self): | ||
return f"UpdateResponse(updated_field={self.updated_field}, errors={self.error})" | ||
return f"UpdateResponse(updated_field={self.updated_field}, errors={self.errors})" | ||
|
||
def __str__(self): | ||
return self.__repr__() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
class TokenizeRequest: | ||
def __init__(self, values): | ||
self.tokenize_parameters = values | ||
self.values = values |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters