Skip to content

Commit 813ed25

Browse files
authored
Update test.py
1 parent b14ca1b commit 813ed25

File tree

1 file changed

+6
-7
lines changed
  • .learn/exercises/08.1-delete-live-test

1 file changed

+6
-7
lines changed

.learn/exercises/08.1-delete-live-test/test.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff 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")
2020
def 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")
2424
def 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')
6767
def 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")
150149
def test_delete():
@@ -158,4 +157,4 @@ def test_delete():
158157
@pytest.mark.it("The endpoint 'DELETE /todos' should exist")
159158
def test_return(client):
160159
response = client.delete('/todos/1')
161-
assert response.status_code == 200
160+
assert response.status_code == 200

0 commit comments

Comments
 (0)