File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
.learn/exercises/08.1-delete-live-test Expand file tree Collapse file tree 1 file changed +6
-7
lines changed 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 ():
@@ -158,4 +157,4 @@ def test_delete():
158157@pytest .mark .it ("The endpoint 'DELETE /todos' should exist" )
159158def test_return (client ):
160159 response = client .delete ('/todos/1' )
161- assert response .status_code == 200
160+ assert response .status_code == 200
You can’t perform that action at this time.
0 commit comments