Skip to content

Commit

Permalink
test display precisions
Browse files Browse the repository at this point in the history
  • Loading branch information
chadsr committed May 27, 2024
1 parent bef2694 commit 9826762
Showing 1 changed file with 21 additions and 11 deletions.
32 changes: 21 additions & 11 deletions tests/test_waybar_crypto.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,17 @@ def config() -> Config:
"currency": "EUR",
"currency_symbol": "€",
"spacer_symbol": "|",
"display_options": [],
"display_options": [
"price",
"percent_change_1h",
"percent_change_24h",
"percent_change_7d",
"percent_change_30d",
"percent_change_60d",
"percent_change_90d",
"volume_24h",
"volume_change_24h",
],
"display_options_format": DEFAULT_DISPLAY_OPTIONS_FORMAT,
"api_key": "some_api_key",
},
Expand All @@ -49,28 +59,28 @@ def config() -> Config:
"in_tooltip": False,
"price_precision": 1,
"change_precision": 2,
"volume_precision": 2,
"volume_precision": 3,
},
"eth": {
"icon": "ETH",
"in_tooltip": False,
"price_precision": 2,
"change_precision": 2,
"volume_precision": 2,
"price_precision": 4,
"change_precision": 5,
"volume_precision": 6,
},
"dot": {
"icon": "DOT",
"in_tooltip": True,
"price_precision": 4,
"change_precision": 2,
"volume_precision": 2,
"price_precision": 7,
"change_precision": 8,
"volume_precision": 9,
},
"avax": {
"icon": "AVAX",
"in_tooltip": True,
"price_precision": 3,
"change_precision": 2,
"volume_precision": 2,
"price_precision": 10,
"change_precision": 11,
"volume_precision": 12,
},
},
}
Expand Down

0 comments on commit 9826762

Please sign in to comment.