Skip to content

Commit 681eef5

Browse files
committed
test: fix broken tests
x_full_text has been renamed to full_text
1 parent 6dc7a5b commit 681eef5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

events/tests/test_event_filters.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ def test_get_event_search_full_text_with_sorting_api(api_client):
422422

423423
resp = get_list(
424424
api_client,
425-
data={"x_full_text": "Testword", "x_full_text_language": "fi", "sort": "name"},
425+
data={"full_text": "Testword", "full_text_language": "fi", "sort": "name"},
426426
)
427427
data = resp.data["data"]
428428

@@ -464,7 +464,7 @@ def test_get_event_search_full_text_with_start_time_sorting_api(api_client):
464464

465465
resp = get_list(
466466
api_client,
467-
query_string="x_full_text=Testisana&x_full_text_language=fi&sort=start_time",
467+
query_string="full_text=Testisana&full_text_language=fi&sort=start_time",
468468
)
469469
data = resp.data["data"]
470470

@@ -507,7 +507,7 @@ def test_get_event_search_full_text_with_end_time_sorting_api(api_client):
507507

508508
resp = get_list(
509509
api_client,
510-
query_string="x_full_text=Testisana&x_full_text_language=fi&sort=end_time",
510+
query_string="full_text=Testisana&full_text_language=fi&sort=end_time",
511511
)
512512
data = resp.data["data"]
513513

@@ -562,7 +562,7 @@ def test_get_event_search_full_text_with_enrolment_start_time_sorting_api(api_cl
562562

563563
resp = get_list(
564564
api_client,
565-
query_string="x_full_text=Testisana&x_full_text_language=fi&sort=registration__enrolment_start_time",
565+
query_string="full_text=Testisana&full_text_language=fi&sort=registration__enrolment_start_time",
566566
)
567567
data = resp.data["data"]
568568

@@ -614,7 +614,7 @@ def test_get_event_search_full_text_with_enrolment_end_time_sorting_api(api_clie
614614
call_command("rebuild_event_search_index")
615615
resp = get_list(
616616
api_client,
617-
query_string="x_full_text=Testisana&x_full_text_language=fi&sort=registration__enrolment_end_time",
617+
query_string="full_text=Testisana&full_text_language=fi&sort=registration__enrolment_end_time",
618618
)
619619
data = resp.data["data"]
620620
assert len(data) == 3

0 commit comments

Comments
 (0)