uprawnienia do stacji i usuwanie firm

This commit is contained in:
Mateusz Gruszczyński
2026-07-13 16:07:16 +02:00
parent 6cfbfa658c
commit 3b2effbe05
3 changed files with 63 additions and 13 deletions
+11
View File
@@ -252,3 +252,14 @@ def test_company_settings_show_station_access_and_favorite_pagination(tmp_path):
assert 'favorite-pagination' in html
assert 'Zapisz ulubione' in html
assert 'Usuń firmę' in html
def test_admin_stations_without_company_shows_company_picker(tmp_path):
app = make_app(tmp_path, "stations-picker.db")
client = app.test_client()
client.post('/login', data={'email':'admin@example.com','password':'admin123!'})
response = client.get('/stations')
html = response.get_data(as_text=True)
assert response.status_code == 200
assert 'Wybierz firmę' in html
assert 'name="company_id"' in html
assert 'Przejdź do konfiguracji' in html