File tree Expand file tree Collapse file tree 3 files changed +20
-3
lines changed Expand file tree Collapse file tree 3 files changed +20
-3
lines changed Original file line number Diff line number Diff line change 31
31
"sessions_before" : null ,
32
32
"next_session" : null ,
33
33
"prev_session" : null ,
34
- "website_url" : " https://ep2024.europython.eu/session/this-is-a-test-talk-from-a-test-speaker-about-a-test-topic"
34
+ "website_url" : " https://ep2024.europython.eu/session/this-is-a-test-talk-from-a-test-speaker-about-a-test-topic" ,
35
+ "youtube_url" : " https://youtube.com/watch?v=01234567890"
35
36
},
36
37
"B8CD4F" : {
37
38
"code" : " B8CD4F" ,
56
57
"sessions_before" : null ,
57
58
"next_session" : null ,
58
59
"prev_session" : null ,
59
- "website_url" : " https://ep2024.europython.eu/session/a-talk-with-shorter-title"
60
+ "website_url" : " https://ep2024.europython.eu/session/a-talk-with-shorter-title" ,
61
+ "youtube_url" : " https://youtube.com/watch?v=12345679012"
60
62
}
61
63
}
Original file line number Diff line number Diff line change
1
+ [
2
+ {
3
+ "submission" : " A8CD3F" ,
4
+ "youtube_link" : " https://youtube.com/watch?v=01234567890" ,
5
+ "video_id" : " 01234567890"
6
+ },
7
+ {
8
+ "submission" : " B8CD4F" ,
9
+ "youtube_link" : " https://youtube.com/watch?v=12345679012" ,
10
+ "video_id" : " 12345679012"
11
+ }
12
+ ]
Original file line number Diff line number Diff line change 8
8
"./data/examples/pretalx/submissions.json"
9
9
)
10
10
11
+ youtube_data = Parse .youtube ("./data/examples/pretalx/youtube.json" )
12
+
11
13
12
14
def test_e2e_sessions () -> None :
13
15
TimingRelationships .compute (pretalx_submissions .values ())
14
16
15
17
ep_sessions = Transform .pretalx_submissions_to_europython_sessions (
16
- pretalx_submissions
18
+ pretalx_submissions ,
19
+ youtube_data ,
17
20
)
18
21
ep_sessions_dump = {
19
22
k : json .loads (v .model_dump_json ()) for k , v in ep_sessions .items ()
You can’t perform that action at this time.
0 commit comments