Skip to content

Commit 3454a8d

Browse files
committed
Check codefactor again
1 parent 2d5545c commit 3454a8d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/test_smile.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
import jsonpickle as json
1313
import pytest
1414

15+
# String genration
16+
import random
17+
import string
18+
1519
from plugwise.exceptions import (
1620
ConnectionFailedError,
1721
DeviceTimeoutError,
@@ -200,11 +204,10 @@ async def connect(self, broken=False, timeout=False, put_timeout=False):
200204
text = await resp.text()
201205
assert "xml" in text
202206

203-
fake_pass="abcdefh"
204207
smile = Smile(
205208
host=server.host,
206209
username="smile",
207-
password=fake_pass,
210+
password=''.join(random.choice(string.ascii_lowercase) for i in range(8)),
208211
port=server.port,
209212
websession=websession,
210213
)

0 commit comments

Comments
 (0)