misc: move station and audio_streams to context_processors (in order to have them available in accounts views)

This commit is contained in:
2023-11-13 13:41:16 +01:00
parent a89117f69d
commit d63d949096
4 changed files with 4 additions and 6 deletions

View File

@ -54,13 +54,11 @@ class TestBaseView:
context = base_view.get_context_data()
assert context == {
"view": base_view,
"station": station,
"page": None, # get_page() returns None
"has_sidebar": base_view.has_sidebar,
"has_filters": False,
"sidebar_object_list": published_pages[: base_view.list_count],
"sidebar_list_url": base_view.get_sidebar_url(),
"audio_streams": station.streams,
"model": base_view.model,
}