22from app .db import db
33import pytest
44
5- # @pytest.mark.skip(reason="No way to test this feature yet")
5+ @pytest .mark .skip (reason = "No way to test this feature yet" )
66def test_task_to_dict ():
77 #Arrange
88 new_task = Task (id = 1 , title = "Make My Bed" ,
@@ -19,7 +19,7 @@ def test_task_to_dict():
1919 assert task_dict ["description" ] == "Start the day off right!"
2020 assert task_dict ["is_complete" ] == False
2121
22- # @pytest.mark.skip(reason="No way to test this feature yet")
22+ @pytest .mark .skip (reason = "No way to test this feature yet" )
2323def test_task_to_dict_missing_id ():
2424 #Arrange
2525 new_task = Task (title = "Make My Bed" ,
@@ -36,7 +36,7 @@ def test_task_to_dict_missing_id():
3636 assert task_dict ["description" ] == "Start the day off right!"
3737 assert task_dict ["is_complete" ] == False
3838
39- # @pytest.mark.skip(reason="No way to test this feature yet")
39+ @pytest .mark .skip (reason = "No way to test this feature yet" )
4040def test_task_to_dict_missing_title ():
4141 #Arrange
4242 new_task = Task (id = 1 ,
@@ -53,7 +53,7 @@ def test_task_to_dict_missing_title():
5353 assert task_dict ["description" ] == "Start the day off right!"
5454 assert task_dict ["is_complete" ] == False
5555
56- # @pytest.mark.skip(reason="No way to test this feature yet")
56+ @pytest .mark .skip (reason = "No way to test this feature yet" )
5757def test_task_from_dict ():
5858 #Arrange
5959 task_dict = {
@@ -70,7 +70,7 @@ def test_task_from_dict():
7070 assert task_obj .description == "Start the day off right!"
7171 assert task_obj .completed_at is None
7272
73- # @pytest.mark.skip(reason="No way to test this feature yet")
73+ @pytest .mark .skip (reason = "No way to test this feature yet" )
7474def test_task_from_dict_no_title ():
7575 #Arrange
7676 task_dict = {
@@ -82,7 +82,7 @@ def test_task_from_dict_no_title():
8282 with pytest .raises (KeyError , match = 'title' ):
8383 Task .from_dict (task_dict )
8484
85- # @pytest.mark.skip(reason="No way to test this feature yet")
85+ @pytest .mark .skip (reason = "No way to test this feature yet" )
8686def test_task_from_dict_no_description ():
8787 #Arrange
8888 task_dict = {
0 commit comments