Skip to content

Commit

Permalink
Several fixes on stripes
Browse files Browse the repository at this point in the history
  • Loading branch information
gutzbenj committed Jan 22, 2025
1 parent 364a447 commit f54a74f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
from streamlit.testing.v1 import AppTest

from wetterdienst import __version__
from wetterdienst.ui.streamlit.climate_stripes import app
from wetterdienst.ui.streamlit.stripes import app


@pytest.mark.cflake
@pytest.mark.remote
def test_climate_stripes():
def test_stripes():
app_test = AppTest.from_file(app.__file__)
app_test.run()
assert app_test.error == []
assert app_test.title[0].value == f"Climate Stripes (v{__version__})"
assert app_test.title[0].value == f"Stripes (v{__version__})"
subheaders = [subheader.value for subheader in app_test.subheader]
assert subheaders == ["Introduction", "Station", "Climate Stripes", "Credits", "Data", "Settings"]
kind = app_test.selectbox[0]
Expand Down
2 changes: 1 addition & 1 deletion wetterdienst/ui/streamlit/stripes/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def get_rest_api_url(
return url


title = f"Climate Stripes (v{__version__})"
title = f"Stripes (v{__version__})"
st.set_page_config(page_title=title)
st.title(title)

Expand Down

0 comments on commit f54a74f

Please sign in to comment.