Skip to content

Commit a76d913

Browse files
committed
lint
1 parent 3e4500b commit a76d913

File tree

3 files changed

+10
-13
lines changed

3 files changed

+10
-13
lines changed

tests/integration_tests/integration_unleash.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ---
2-
import os
32
import logging
3+
import os
44
import sys
55
import time
66

@@ -16,17 +16,21 @@
1616
root.addHandler(handler)
1717
# ---
1818

19-
api_url = os.getenv('UNLEASH_API_URL', 'https://app.unleash-hosted.com/demo/api')
20-
api_token = os.getenv('UNLEASH_API_TOKEN', 'demo-app:dev.9fc74dd72d2b88bea5253c04240b21a54841f08d9918046ed55a06b5')
19+
api_url = os.getenv("UNLEASH_API_URL", "https://app.unleash-hosted.com/demo/api")
20+
api_token = os.getenv(
21+
"UNLEASH_API_TOKEN",
22+
"demo-app:dev.9fc74dd72d2b88bea5253c04240b21a54841f08d9918046ed55a06b5",
23+
)
2124
flag = "example-flag"
2225
use_streaming = os.getenv("USE_STREAMING", "true").lower() == "true"
2326

2427
client = UnleashClient(
2528
url=api_url,
2629
app_name="integration-python",
27-
custom_headers={'Authorization': api_token},
30+
custom_headers={"Authorization": api_token},
2831
experimental_mode={"type": "streaming"} if use_streaming else None,
29-
metrics_interval=1)
32+
metrics_interval=1,
33+
)
3034

3135
client.initialize_client()
3236

tests/unit_tests/streaming/test_event_processor.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
from __future__ import annotations
22

3-
import json
4-
5-
import pytest
6-
73
from UnleashClient.streaming.event_processor import StreamingEventProcessor
84

95

tests/unit_tests/streaming/test_streaming_connector.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
from __future__ import annotations
22

3-
import json
43
import threading
54
import time
65
from typing import Iterable
7-
from unittest.mock import MagicMock, patch
8-
9-
import pytest
106

117
from UnleashClient.streaming import StreamingConnector
128
from UnleashClient.streaming.event_processor import StreamingEventProcessor
@@ -63,6 +59,7 @@ def close(self):
6359
def interrupt(self):
6460
self.close()
6561

62+
6663
def test_successful_connection_calls_ready():
6764
engine = FakeEngine()
6865
processor = StreamingEventProcessor(engine)

0 commit comments

Comments
 (0)