Skip to content

Commit

Permalink
Fix tests broken by #1538
Browse files Browse the repository at this point in the history
  • Loading branch information
rixx committed Feb 12, 2024
1 parent c252163 commit 15b56be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/pretalx/schedule/exporters.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def get_data(self, **kwargs):
"daysCount": self.event.duration,
"timeslot_duration": "00:05",
"time_zone_name": self.event.timezone,
"colors": {"primary": self.event.primary_color},
"colors": {"primary": self.event.primary_color or "#3aa57c"},
# "url": self.event.urls.base.full(), # TODO this should be the URL of the conference website itself, but we do not have a field for this value yet
"rooms": [
{
Expand Down
8 changes: 4 additions & 4 deletions src/tests/agenda/test_agenda_schedule_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def test_schedule_frab_json_export(
orga_user,
schedule_schema_json,
):
with django_assert_max_num_queries(12):
with django_assert_max_num_queries(13):
regular_response = client.get(
reverse(
"agenda:export.schedule.json",
Expand All @@ -138,7 +138,7 @@ def test_schedule_frab_json_export(
follow=True,
)
client.force_login(orga_user)
with django_assert_max_num_queries(22):
with django_assert_max_num_queries(23):
orga_response = client.get(
reverse(
"agenda:export.schedule.json",
Expand Down Expand Up @@ -204,7 +204,7 @@ def test_schedule_ical_export(slot, client, django_assert_max_num_queries):

@pytest.mark.django_db
def test_schedule_single_ical_export(slot, client, django_assert_max_num_queries):
with django_assert_max_num_queries(12):
with django_assert_max_num_queries(13):
response = client.get(slot.submission.urls.ical, follow=True)
assert response.status_code == 200

Expand Down Expand Up @@ -240,7 +240,7 @@ def test_schedule_export_nonpublic(
def test_schedule_export_public(exporter, slot, client, django_assert_max_num_queries):
exporter = "feed" if exporter == "feed" else f"export.{exporter}"

with django_assert_max_num_queries(12):
with django_assert_max_num_queries(13):
response = client.get(
reverse(f"agenda:{exporter}", kwargs={"event": slot.submission.event.slug}),
follow=True,
Expand Down

0 comments on commit 15b56be

Please sign in to comment.