Skip to content

Commit d0a7ad6

Browse files
Defeat the linter
1 parent 4ba9141 commit d0a7ad6

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

terminusdb_client/schema/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def __setattr__(self, name, value):
203203
and hasattr(self, "_key")
204204
and hasattr(self._key, "_keys")
205205
and name in self._key._keys
206-
and value != getattr(self,name)
206+
and value != getattr(self, name)
207207
):
208208
raise ValueError(
209209
f"{name} has been used to generate the id, hence cannot be changed."

terminusdb_client/tests/integration_tests/test_schema.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ def test_compress_data(docker_url):
303303
test_obj2 = client.get_all_documents(as_list=True)
304304
assert len(test_obj2) == 10
305305

306+
306307
def test_repeated_object_load(docker_url, test_schema):
307308
schema = test_schema
308309
client = Client(docker_url, user_agent=test_user_agent)
@@ -315,9 +316,10 @@ def test_repeated_object_load(docker_url, test_schema):
315316
"name" : "Romania",
316317
"perimeter" : []})
317318
obj = client.get_document(country_id)
318-
local_obj = schema.import_objects(obj)
319+
schema.import_objects(obj)
319320
obj2 = client.get_document(country_id)
320-
local_obj2 = schema.import_objects(obj2)
321+
schema.import_objects(obj2)
322+
321323

322324
def test_key_change_raises_exception(docker_url, test_schema):
323325
schema = test_schema

0 commit comments

Comments
 (0)