@@ -833,10 +833,10 @@ def test_submit_homework_with_all_fields(self):
833
833
f"answer_{ self .question4 .id } " : ["3" ],
834
834
f"answer_{ self .question5 .id } " : ["3.141516" ],
835
835
f"answer_{ self .question6 .id } " : ["1" , "2" ],
836
- "homework_url" : "http ://example.com/homework " ,
836
+ "homework_url" : "https ://httpbin.org/status/200 " ,
837
837
"learning_in_public_links[]" : [
838
- "http ://example.com/link1 " ,
839
- "http ://example .com/link2 " ,
838
+ "https ://httpbin.org/status/200 " ,
839
+ "https ://github .com/DataTalksClub " ,
840
840
"" ,
841
841
],
842
842
"time_spent_lectures" : "5" ,
@@ -868,8 +868,8 @@ def test_submit_homework_with_all_fields(self):
868
868
)
869
869
870
870
expected_learning_in_public_links = [
871
- "http ://example.com/link1 " ,
872
- "http ://example .com/link2 " ,
871
+ "https ://httpbin.org/status/200 " ,
872
+ "https ://github .com/DataTalksClub " ,
873
873
]
874
874
self .assertEqual (
875
875
submission .learning_in_public_links ,
@@ -913,7 +913,7 @@ def test_submit_homework_with_all_fields_optional_empty(self):
913
913
f"answer_{ self .question4 .id } " : ["3" ],
914
914
f"answer_{ self .question5 .id } " : ["3.141516" ],
915
915
f"answer_{ self .question6 .id } " : ["1" , "2" ],
916
- "homework_url" : "http ://example.com/homework " ,
916
+ "homework_url" : "https ://httpbin.org/status/200 " ,
917
917
"learning_in_public_links[]" : ["" ],
918
918
"time_spent_lectures" : "" ,
919
919
"time_spent_homework" : "" ,
@@ -967,11 +967,9 @@ def test_submit_homework_learning_in_public_empty_and_duplicates(
967
967
f"answer_{ self .question5 .id } " : ["3.141516" ],
968
968
f"answer_{ self .question6 .id } " : ["1" , "2" ],
969
969
"learning_in_public_links[]" : [
970
- "http://example.com/link1" ,
971
- "http://example.com/link2" ,
972
- "http://example.com/link1" ,
973
- "" ,
974
- "" ,
970
+ "https://httpbin.org/status/200" ,
971
+ "https://httpbin.org/status/200" ,
972
+ "https://github.com/DataTalksClub"
975
973
"" ,
976
974
],
977
975
}
@@ -994,8 +992,8 @@ def test_submit_homework_learning_in_public_empty_and_duplicates(
994
992
)
995
993
996
994
expected_learning_in_public_links = [
997
- "http ://example.com/link1 " ,
998
- "http ://example .com/link2" ,
995
+ "https ://httpbin.org/status/200 " ,
996
+ "https ://github .com/DataTalksClub"
999
997
]
1000
998
self .assertEqual (
1001
999
submission .learning_in_public_links ,
0 commit comments