From 89125782d7bbe37014ecc6bb0684e011bf5db1e6 Mon Sep 17 00:00:00 2001 From: John Ahlroos Date: Sat, 25 Apr 2026 13:04:03 +0200 Subject: [PATCH] Consolidate pytest.ini with pyproject.toml & add test --- app/pages/counters.py | 13 ++++++++----- pyproject.toml | 17 ++++++++++++++--- tests/pytest.ini | 10 ---------- tests/ui/counters_test.py | 19 +++++++++++++++++++ 4 files changed, 41 insertions(+), 18 deletions(-) delete mode 100644 tests/pytest.ini diff --git a/app/pages/counters.py b/app/pages/counters.py index 2732a8f..343b3ad 100644 --- a/app/pages/counters.py +++ b/app/pages/counters.py @@ -1,6 +1,8 @@ import streamlit as st from streamlit import dialog +from tomlkit import key + from queries import crud, daily_stats, weekly_stats, monthly_stats, yearly_stats from enums import CounterType @@ -76,13 +78,14 @@ with st.container(key="counter-table"): if counter_type is CounterType.SIMPLE.value: st.markdown(f"**{stats_current} {stats_current_unit}**") else: - st.markdown(f""" - **{stats_current} {stats_current_unit}** - *{stats_prev} {stats_prev_unit}* - """) + st.markdown(f"**{stats_current} {stats_current_unit}** *{stats_prev} {stats_prev_unit}*") with st.container(horizontal=True, width="stretch", horizontal_alignment="right"): - st.page_link("pages/stats.py", icon=":material/bar_chart:", icon_position="right", label="", query_params={"counter_id": str(counter_id)}) + st.page_link("pages/stats.py", + icon=":material/bar_chart:", + icon_position="right", + label="", + query_params={"counter_id": str(counter_id)}) st.html(f"""