Skip to content

Commit

Permalink
(BSR)[BO] test: fix wrongly written test
Browse files Browse the repository at this point in the history
  • Loading branch information
rpaoloni-pass committed Feb 10, 2025
1 parent 3e5ca50 commit bb7ff41
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions api/tests/routes/backoffice/collective_bookings_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,22 +238,22 @@ def test_list_cancelled_collective_booking_information(
[
{},
{
"from_date": datetime.datetime(1970, 1, 1),
"event_from_date": datetime.datetime(1970, 1, 1),
},
{
"to_date": datetime.datetime(2037, 12, 31),
"event_to_date": datetime.datetime(2037, 12, 31),
},
{
"from_date": datetime.datetime(1970, 1, 1),
"to_date": datetime.datetime(2037, 12, 31),
"event_from_date": datetime.datetime(1970, 1, 1),
"event_to_date": datetime.datetime(2037, 12, 31),
},
],
)
def test_display_download_link(self, authenticated_client, collective_bookings, query_args):
venue_id = [collective_bookings[0].venueId]
kwargs = {**query_args, "venue_id": venue_id}
kwargs = {**query_args, "venue": venue_id}
response = authenticated_client.get(url_for(self.endpoint, **kwargs))
assert b"pc-clipboard" in response.data
assert (b"pc-clipboard" in response.data) == (not query_args)

def test_list_bookings_by_name(self, authenticated_client, collective_bookings):
with assert_num_queries(self.expected_num_queries):
Expand Down

0 comments on commit bb7ff41

Please sign in to comment.