Skip to content

Commit

Permalink
Update formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ruthenian8 committed Oct 30, 2023
1 parent 689edd7 commit 735424e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions tests/stats/chart_data.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# flake8: noqa: E501
CHART_DATA = {
1: [
{
Expand Down
8 changes: 4 additions & 4 deletions tests/stats/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
except ImportError:
pytest.skip(reason="`OmegaConf` dependency missing.", allow_module_level=True)

from tests.stats.chart_data import CHART_DATA
from tests.stats.chart_data import CHART_DATA # noqa: F401
from tests.context_storages.test_dbs import ping_localhost
from tests.test_utils import get_path_from_tests_to_current_dir

Expand Down Expand Up @@ -85,8 +85,8 @@ def dashboard_display_test(args: Namespace, session, headers, base_url: str):
charts_result = session.get(charts_url, headers=headers)
charts_json = charts_result.json()
assert charts_json["count"] == 17
print(*charts_json["ids"])
for _id in charts_json["ids"]:
print(str(_id))
data_result = session.get(
parse.urljoin(DEFAULT_SUPERSET_URL, f"api/v1/chart/{str(_id)}/data/"), headers=headers
)
Expand All @@ -96,8 +96,8 @@ def dashboard_display_test(args: Namespace, session, headers, base_url: str):
assert data_result_json["result"][-1]["stacktrace"] is None
data = data_result_json["result"][-1]["data"]
ignored_keys = ["context_id", "__timestamp", "start_time", "data"]
filtered_data = [{key: value} for item in data for key, value in item.items() if key not in ignored_keys]
# assert filtered_data == CHART_DATA[_id]
_ = [{key: value} for item in data for key, value in item.items() if key not in ignored_keys]
# assert _ == CHART_DATA[_id]
session.close()


Expand Down

0 comments on commit 735424e

Please sign in to comment.