CS50W - Lecture 7 - Testing and CI/CD

  Рет қаралды 148,113

CS50

CS50

Күн бұрын

Пікірлер
@jacobjose480
@jacobjose480 Жыл бұрын
Melan and Brian are GREAT TEACHERS. GOD BLESS BOTH. From India
@defiler90
@defiler90 2 жыл бұрын
this guy is awesome. touches upon so many aspects without overcomplicating anything.
@Jairo-Arevalo-Rea
@Jairo-Arevalo-Rea 2 ай бұрын
Wow this was a really interesting lecture, it's amazing how confident you feel when you are guided by such a high quality team of experts... Thanks Brian...
@freeeagle6074
@freeeagle6074 2 жыл бұрын
Repetition is the mother of memorization. This course uses repetition in a beautiful way. Note, lecture, source code, project, capstone. By the end, it's hard not to remember essential concepts and details.
@alessandrob.g.4524
@alessandrob.g.4524 Жыл бұрын
Yes, redundancy is king (or queen Haha). That's why knowledge from reading books tends to stick so much
@ABBASREICI-os8gu
@ABBASREICI-os8gu Жыл бұрын
ش111شص
@bpokrepin
@bpokrepin 7 ай бұрын
46:35 hey guys please note that .find_element_by is deprecated, use driver.find_element(By.ID, "increase")
@bpokrepin
@bpokrepin 7 ай бұрын
before that import By: from selenium.webdriver.common.by import By
@bpokrepin
@bpokrepin 7 ай бұрын
same with a tag name: find_element(By.TAG_NAME, "...")
@SaadHussain-op8ps
@SaadHussain-op8ps 4 ай бұрын
@@bpokrepin for using By, you have to import it from selenium.webdriver.common.by import By
@hirojuarez5325
@hirojuarez5325 26 күн бұрын
It says name ‘By’ is not defined. How to fix this?
@bpokrepin
@bpokrepin 26 күн бұрын
@@hirojuarez5325 you need to import it from the selenium library
@jaddadzakaria
@jaddadzakaria Жыл бұрын
Zakaria Jaddad was here thanks Mr Brian for this lecture and the cs50 staff for making this amazing course happen
@muhammadrafehatique6790
@muhammadrafehatique6790 4 жыл бұрын
I fall in love with this Guy! Thank u so much Brain!
@_ashyou
@_ashyou 2 жыл бұрын
Brian
@CenturionKZ
@CenturionKZ 4 жыл бұрын
Brain and David are the best!
@xavier2586
@xavier2586 3 жыл бұрын
It's Brian🥺
@freeeagle6074
@freeeagle6074 2 жыл бұрын
@@xavier2586 Brian has got brain definitely.
@xavier2586
@xavier2586 2 жыл бұрын
@@freeeagle6074 😂
@freeeagle6074
@freeeagle6074 2 жыл бұрын
Awesome. Ci/cd beckons to lecture 1. It's like a well-plotted play--somthing the writer seemed to mention casually would have consequences later. Until now, the circle is closed.
@vamsi3515
@vamsi3515 7 ай бұрын
23:18 for the function is-valid_flight, "or" opeartor is used instead of "and" to make sure both conditions should be valid
@sireesbrl3833
@sireesbrl3833 6 ай бұрын
If one condition is false it would still return true, how is the flight valid then?
@alliswell3625
@alliswell3625 2 жыл бұрын
01:18:51 docker
@MaziarHeidari-i4e
@MaziarHeidari-i4e 10 ай бұрын
Thanks a lot . I love your courses
@donteven4673
@donteven4673 3 жыл бұрын
Thanks so much Brian!!
@AnilSardiwal
@AnilSardiwal 3 жыл бұрын
Selenium starts at 38:00
@WildThoughtsAI
@WildThoughtsAI Жыл бұрын
lol nerd
@alainrouleau
@alainrouleau 8 ай бұрын
Thanks very much for the lecture. Would like to have seen the use of Pytest instead of unittest though. The built-in Python unit testing framework is a bit old & clunky with a lot of boilerplate code. The built-in doctest module in Python is also great for beginners who are new to unit testing. And not only is doctest great for unit testing but it also forces you to write docstrings, you know, documentation for your functions/classes, right from the beginning. Which is what you want in a programmer.
@Robert420L
@Robert420L 3 жыл бұрын
Amazing guru....u r awesome 🙂
@ShivaniKumari-jy8no
@ShivaniKumari-jy8no 3 жыл бұрын
💋💋
@hide_yama
@hide_yama 3 жыл бұрын
I thought that the content of this class would be difficult to learn without actually trying it at the development site.
@mr09740974
@mr09740974 2 жыл бұрын
i'm confused at 36:35 he is creating passenger object outside setUp function. Then don't we a need setUp function? and are objects created outside setUp function aliased and destroyed also?
@Flamekebab
@Flamekebab 3 жыл бұрын
Unfortunately the prime numbers/square root stuff meant that the explanation of assert statements went completely over my head. The example ended up being more convoluted than the concept it was supposed to illustrate :/ (I looked elsewhere and learnt how they worked - on a rewatch I still can't follow what's going on in your example)
@Flamekebab
@Flamekebab 3 жыл бұрын
@leviosa Again, that explanation goes completely over my head. It's not that I'm incapable of understanding it - it's that it's so abstract that I find it difficult to engage with. I've used most forms of maths I was taught over the years for one thing or another but I've never found a use for prime numbers. I do not mean they're useless - just that I've never found an application for them. As a result the explanation might as well be related to the smell of the colour blue and how when approached from an oblique angle it's more of a turquoise. None of that is relevant to what was being taught. The point was to learn how to use assert statements and by applying it to something that, to many of us, is utterly abstract it becomes extremely difficult to follow. Thankfully that sort of weirdness has been very uncommon in CS50!
@innocence3158
@innocence3158 4 жыл бұрын
I love you Brian
@jacobjose480
@jacobjose480 Жыл бұрын
Marry him
@bakhtiyor_sulaymonov
@bakhtiyor_sulaymonov 2 жыл бұрын
thanks guys for this quality content
@freelanceprogrammer9537
@freelanceprogrammer9537 3 жыл бұрын
14:13 in Visual Code Windows 10 ??? I did copy and paste all from the file sh in the terminal and work: python -c "from tests0 import test_prime; test_prime(1,False)" python -c "from tests0 import test_prime; test_prime(2,True)" python -c "from tests0 import test_prime; test_prime(8,False)" python -c "from tests0 import test_prime; test_prime(11,False)" python -c "from tests0 import test_prime; test_prime(25,False)" python -c "from tests0 import test_prime; test_prime(28,False)" Result: ERROR on is_prime(11), expected False note: with the function working fine.
@SaadHussain-op8ps
@SaadHussain-op8ps 4 ай бұрын
for windows, change the file extension from .sh to .cmd add line @echo off at the top of all the scripts then run ./tests0.cmd and it will run as expected
@ibrahimabarry8839
@ibrahimabarry8839 4 жыл бұрын
thank you brian
@DMxalava
@DMxalava 3 жыл бұрын
Thank you again!
@AlvinZhou-s5n
@AlvinZhou-s5n Ай бұрын
Can't get selenium working even with same chrome version. Status code 127
@AzamatBeit.
@AzamatBeit. Жыл бұрын
19:26 why test_28 is not appear??
@illiapiliugin8200
@illiapiliugin8200 3 жыл бұрын
January 2021 - Flght origin and flight destination is same airport have sence ))))))))
@theblackgods4699
@theblackgods4699 2 жыл бұрын
1:00:20
@bekzodnegmatillaev8974
@bekzodnegmatillaev8974 4 жыл бұрын
where do I can get code from "airline" django project?
@endorfineater
@endorfineater 4 жыл бұрын
In this lecture Brian implements 'airline' kzbin.info/www/bejne/j6uzYmlqjqaBd7c
@endorfineater
@endorfineater 4 жыл бұрын
You can also try on the lecture web page where there is a list of links including 'source code ' (right click seems to work) cs50.harvard.edu/web/2020/weeks/4/
@RomarioKurti28
@RomarioKurti28 6 ай бұрын
this lecture was hell
@TheMasterboi1
@TheMasterboi1 3 жыл бұрын
Brain You Are Awesome :)
@_ashyou
@_ashyou 2 жыл бұрын
Brian
@ryanlog
@ryanlog 8 ай бұрын
CI/CDeez nuts ! Haaah... Gotteeee
@zadilkhwaja
@zadilkhwaja 2 жыл бұрын
7:15
@KirillSkobelev
@KirillSkobelev 4 жыл бұрын
Thanks David! jk
@ehza
@ehza 4 жыл бұрын
Thanks Kirill
@oruchkin
@oruchkin 3 жыл бұрын
thanks Brian
@freelanceprogrammer9537
@freelanceprogrammer9537 3 жыл бұрын
04:07 squeare only (subtitle)
@firefuegomakes
@firefuegomakes Жыл бұрын
It pains my heart to be on the second last project and know that I'm leaving😭
@tsunningwah3471
@tsunningwah3471 Жыл бұрын
zibei
@Minsturuiop
@Minsturuiop 11 ай бұрын
he is very clear in his explanations.but his face is a little annoying for some reason. still very good lecture !
@SaadHussain-op8ps
@SaadHussain-op8ps 4 ай бұрын
any one here whose docker is not running and getting error django.db.utils.OperationalError: connection to server at "db" (172.18.0.2), port 5432 failed: FATAL: password authentication failed for user "postgres"
@Stevegerr8
@Stevegerr8 3 жыл бұрын
When I'm trying the response = c.get(f"/flights/{max_id + 1}") self.assertEqual(response.status_code, 404) I'm getting an error (flights.models.Flight.DoesNotExist: Flight matching query does not exist.) even with Brian's code c/p
@nathansherrard4111
@nathansherrard4111 3 жыл бұрын
The problem isn't in the tests.py, but actually in views.py. In the previous lecture 4 (at the hour and 22 min, 40 secs mark) you see on line 12 it just says: flight = Flight.objects.get(id=flight_id) It actually should be wrapped in a try/except block, with an Except for Flight.DoesNotExist, which can then do a 'raise Http404("Flight not found.")'. That's how you'll get the 404 to properly match in your assertEqual statement. If you download the finished source code from lecture 4 they have this in there (note: I had to manually copy/paste the url and change the schema from http to https to trigger the download). There's also a lot more excepts put in for the "book" function as well.
@pl4953
@pl4953 2 жыл бұрын
@@nathansherrard4111 Thanks bro!
@dmadalengoitia
@dmadalengoitia 2 жыл бұрын
@@nathansherrard4111 Thank you very much!!! I think Brian should point that out because if you are just following the lecture without downloading the source code it is really difficult to catch the error...
@nonamed56
@nonamed56 Жыл бұрын
1:09:00
CS50W - Lecture 8 - Scalability and Security
1:27:46
CS50
Рет қаралды 116 М.
How GitHub Actions 10x my productivity
8:18
Beyond Fireship
Рет қаралды 449 М.
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
CS50W - Lecture 1 - Git
53:16
CS50
Рет қаралды 431 М.
Stop Using Selenium or Playwright for Web Scraping
10:46
John Watson Rooney
Рет қаралды 15 М.
GitHub Actions Certification - Full Course to PASS the Exam
3:09:59
freeCodeCamp.org
Рет қаралды 212 М.
CS50W - Lecture 5 - JavaScript
1:51:26
CS50
Рет қаралды 602 М.
Tools EVERY Software Engineer Should Know
11:37
Tech With Tim
Рет қаралды 22 М.
CS50W - Lecture 6 - User Interfaces
1:40:15
CS50
Рет қаралды 206 М.
Introduction to Jenkins, CI/CD, and DevOps for Beginners (2024)
1:55:40
Valentin Despa
Рет қаралды 29 М.
FastAPI, Flask or Django - Which Should You Use?
9:49
Tech With Tim
Рет қаралды 115 М.
Everything You NEED to KNOW About Web Applications
3:03
ByteByteGo
Рет қаралды 81 М.
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН