Skip to content

Commit 6d86a4b

Browse files
committed
Fixes flake8 errors
* Used secrets instead of random to generate random values.
1 parent aa0c2f5 commit 6d86a4b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

terminusdb_client/tests/test_connectionConfig.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import random
1+
import secrets
22
import string
33

44
from terminusdb_client.woqlclient.connectionConfig import ConnectionConfig
@@ -11,7 +11,7 @@ class TestConnectionConfig:
1111
# Set of random string values that can as replacements for dummy id valuess
1212
# i.e accountid,branchid,refid etc
1313
id_value = "".join(
14-
random.choice(string.ascii_uppercase + string.ascii_lowercase)
14+
secrets.choice(string.ascii_uppercase + string.ascii_lowercase)
1515
for _ in range(16)
1616
)
1717
# to be review !!!!!
@@ -120,6 +120,7 @@ def test_repo_base(self):
120120
default_base
121121
== f"http://localhost:6363/pull/{self.id_value}/{self.id_value}/local"
122122
)
123+
123124
self.connection_config.update(repo=self.id_value)
124125
updated_base = self.connection_config.db_base("pull")
125126
assert (

terminusdb_client/woqldataframe/woqlDataframe.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ class EmptyException(Exception):
2828
If the result table of the query is empty
2929
3030
"""
31-
pass
3231

3332

3433
def _is_empty(query):

0 commit comments

Comments
 (0)