File tree Expand file tree Collapse file tree
.learn/exercises/08.2-finish-todos Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,11 +16,11 @@ def client():
1616 os .close (db_fd )
1717 os .unlink (app .config ['DATABASE' ])
1818
19- @pytest .mark .it ("folder src must exist" )
19+ @pytest .mark .it ("Folder src must exist" )
2020def test_src_folder ():
2121 assert os .path .isdir ("./src/" )
2222
23- @pytest .mark .it ("app.py must exist" )
23+ @pytest .mark .it ("File app.py must exist" )
2424def test_pipfile_exists ():
2525 assert os .path .isfile ("src/app.py" )
2626
@@ -63,7 +63,7 @@ def test_labels_string():
6363 if "label" in task :
6464 assert isinstance (task ["label" ], str )
6565
66- @pytest .mark .it ('The value of the "done" key on each todo should be boolean' )
66+ @pytest .mark .it ('The value of the "done" key on each todo should be a boolean' )
6767def test_done_bool ():
6868 from src import app
6969 for task in app .todos :
@@ -142,9 +142,8 @@ def test_incoming_list(client):
142142 matches .append (task )
143143 assert 1 == len (matches )
144144
145- """
146- Testing DELETE
147- """
145+
146+ # Testing DELETE
148147
149148@pytest .mark .it ("The function delete_todo should be declared" )
150149def test_delete ():
@@ -175,4 +174,4 @@ def test_delete_and_get(client):
175174 response2 = client .delete ('/todos/0' )
176175 data = json .loads (response2 .data )
177176
178- assert (len (todos ) - 1 ) == len (data )
177+ assert (len (todos ) - 1 ) == len (data )
You can’t perform that action at this time.
0 commit comments