Happy Christmas to y'all! Who has some goals/plans ready for the next year? P.S.: Check me out on twitter: twitter.com/gabrimarcan Will be posting something there once in a while.
def test_get_absolute_url(self): response = Project.objects.create( name = "project 2", budget = 1000 ) self.assertEquals(response.slug, response.name.replace(" ", "-")) #Correct me if i am wrong..
i write a little bit code for absolute_url function def test_absolute_slug(self): expected_url = f'/{self.project1.slug}' actual_url = self.project1.get_absolute_url() self.assertEquals(actual_url, expected_url, True) if something went wrong write comment
Happy Christmas to y'all! Who has some goals/plans ready for the next year? P.S.: Check me out on twitter: twitter.com/gabrimarcan Will be posting something there once in a while.
I'd love if you have tests for standard models and many-to-many ones such as ForeignKey. There are
almost no video about them.
Great videos. Really explanatory. Waiting for the video on testing templates.
Thanks, Victor! We'll mostly be testing templates through the selenium tests.
very good tut.
it's the best test-tutorial. it's video>Russians video
Thanks👏
Is there no video on how to do this on a windows machina?
Though I did the same as mentioned. I'm getting Ran 0 test cases. What should I do?
Hi,it is a nice explanation, could anyone help me how to test a model field which has unique= true in test.py file
does anyone know why when I do this I get a django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet. Error?
The code is not there on your github. The repo doesn't have the test cases.
def test_get_absolute_url(self):
response = Project.objects.create(
name = "project 2",
budget = 1000
)
self.assertEquals(response.slug, response.name.replace(" ", "-"))
#Correct me if i am wrong..
Testing for gau is 'overboard'? Seriously?
i write a little bit code for absolute_url function
def test_absolute_slug(self):
expected_url = f'/{self.project1.slug}'
actual_url = self.project1.get_absolute_url()
self.assertEquals(actual_url, expected_url, True)
if something went wrong write comment
def test_get_absolute_url(self):
self.assertEquals(self.project1.get_absolute_url(), "/project-1")