Skip to content

Commit 9e099c9

Browse files
authored
Update test.py
1 parent 18f34cc commit 9e099c9

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

  • .learn/exercises/08.2-finish-todos

.learn/exercises/08.2-finish-todos/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():
@@ -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)

0 commit comments

Comments
 (0)