@@ -64,13 +64,13 @@ def speaker_pages_generator(url):
64
64
65
65
@respx .mock
66
66
def test_fetch_submissions_from_pretalx ():
67
- url = "https://pretalx.com/api/events/ep2025 /submissions?questions=all"
67
+ url = "https://pretalx.com/api/events/europython-2025 /submissions/ ?questions=all"
68
68
data = submissions_pages_generator (url )
69
69
respx .get (url ).mock (return_value = next (data ))
70
70
respx .get (url + "&page=2" ).mock (return_value = next (data ))
71
71
72
72
submissions = pretalx .fetch_pretalx_data (
73
- "ep2025 " ,
73
+ "europython-2025 " ,
74
74
PretalxData .PretalxResources .submissions ,
75
75
)
76
76
@@ -82,13 +82,13 @@ def test_fetch_submissions_from_pretalx():
82
82
83
83
@respx .mock
84
84
def test_fetch_speakers_from_pretalx ():
85
- url = "https://pretalx.com/api/events/ep2025 /speakers?questions=all"
85
+ url = "https://pretalx.com/api/events/europython-2025 /speakers/ ?questions=all"
86
86
data = speaker_pages_generator (url )
87
87
respx .get (url ).mock (return_value = next (data ))
88
88
respx .get (url + "&page=2" ).mock (return_value = next (data ))
89
89
90
90
submissions = pretalx .fetch_pretalx_data (
91
- "ep2025 " ,
91
+ "europython-2025 " ,
92
92
PretalxData .PretalxResources .speakers ,
93
93
)
94
94
@@ -101,12 +101,12 @@ def test_fetch_speakers_from_pretalx():
101
101
@respx .mock
102
102
@pytest .mark .django_db
103
103
def test_download_latest_submissions ():
104
- url = "https://pretalx.com/api/events/ep2025 /submissions?questions=all"
104
+ url = "https://pretalx.com/api/events/europython-2025 /submissions/ ?questions=all"
105
105
data = submissions_pages_generator (url )
106
106
respx .get (url ).mock (return_value = next (data ))
107
107
respx .get (url + "&page=2" ).mock (return_value = next (data ))
108
108
109
- pretalx .download_latest_submissions ("ep2025 " )
109
+ pretalx .download_latest_submissions ("europython-2025 " )
110
110
111
111
pd = PretalxData .objects .get (resource = PretalxData .PretalxResources .submissions )
112
112
assert pd .resource == "submissions"
@@ -119,12 +119,12 @@ def test_download_latest_submissions():
119
119
@respx .mock
120
120
@pytest .mark .django_db
121
121
def test_download_latest_speakers ():
122
- url = "https://pretalx.com/api/events/ep2025 /speakers?questions=all"
122
+ url = "https://pretalx.com/api/events/europython-2025 /speakers/ ?questions=all"
123
123
data = speaker_pages_generator (url )
124
124
respx .get (url ).mock (return_value = next (data ))
125
125
respx .get (url + "&page=2" ).mock (return_value = next (data ))
126
126
127
- pretalx .download_latest_speakers ("ep2025 " )
127
+ pretalx .download_latest_speakers ("europython-2025 " )
128
128
129
129
pd = PretalxData .objects .get (resource = PretalxData .PretalxResources .speakers )
130
130
assert pd .resource == "speakers"
0 commit comments