Skip to content

Commit 1e0a339

Browse files
committed
uncomment pytest skips for consistency
1 parent 44e62d0 commit 1e0a339

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

tests/test_wave_01.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from app.db import db
33
import 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")
66
def test_task_to_dict():
77
#Arrange
88
new_task = Task(title="Make My Bed",
@@ -19,7 +19,7 @@ def test_task_to_dict():
1919
"is_complete": False
2020
}
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")
2323
def test_task_from_dict():
2424
#Arrange
2525
task_dict = {
@@ -40,7 +40,7 @@ def test_task_from_dict():
4040
assert task_obj.description == expected_task.description
4141
assert task_obj.completed_at == expected_task.completed_at
4242

43-
# @pytest.mark.skip(reason="No way to test this feature yet")
43+
@pytest.mark.skip(reason="No way to test this feature yet")
4444
def test_get_tasks_no_saved_tasks(client):
4545
# Act
4646
response = client.get("/tasks")
@@ -51,7 +51,7 @@ def test_get_tasks_no_saved_tasks(client):
5151
assert response_body == []
5252

5353

54-
# @pytest.mark.skip(reason="No way to test this feature yet")
54+
@pytest.mark.skip(reason="No way to test this feature yet")
5555
def test_get_tasks_one_saved_tasks(client, one_task):
5656
# Act
5757
response = client.get("/tasks")
@@ -70,7 +70,7 @@ def test_get_tasks_one_saved_tasks(client, one_task):
7070
]
7171

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")
7474
def test_get_task(client, one_task):
7575
# Act
7676
response = client.get("/tasks/1")
@@ -104,7 +104,7 @@ def test_get_task_not_found(client):
104104
# *****************************************************************
105105

106106

107-
# @pytest.mark.skip(reason="No way to test this feature yet")
107+
@pytest.mark.skip(reason="No way to test this feature yet")
108108
def test_create_task(client):
109109
# Act
110110
response = client.post("/tasks", json={
@@ -133,7 +133,7 @@ def test_create_task(client):
133133
assert new_task.description == "Test Description"
134134
assert new_task.completed_at == None
135135

136-
# @pytest.mark.skip(reason="No way to test this feature yet")
136+
@pytest.mark.skip(reason="No way to test this feature yet")
137137
def test_update_task(client, one_task):
138138
# Act
139139
response = client.put("/tasks/1", json={
@@ -171,7 +171,7 @@ def test_update_task_not_found(client):
171171
# *****************************************************************
172172

173173

174-
# @pytest.mark.skip(reason="No way to test this feature yet")
174+
@pytest.mark.skip(reason="No way to test this feature yet")
175175
def test_delete_task(client, one_task):
176176
# Act
177177
response = client.delete("/tasks/1")
@@ -199,7 +199,7 @@ def test_delete_task_not_found(client):
199199
assert db.session.scalars(db.select(Task)).all() == []
200200

201201

202-
# @pytest.mark.skip(reason="No way to test this feature yet")
202+
@pytest.mark.skip(reason="No way to test this feature yet")
203203
def test_create_task_must_contain_title(client):
204204
# Act
205205
response = client.post("/tasks", json={
@@ -216,7 +216,7 @@ def test_create_task_must_contain_title(client):
216216
assert db.session.scalars(db.select(Task)).all() == []
217217

218218

219-
# @pytest.mark.skip(reason="No way to test this feature yet")
219+
@pytest.mark.skip(reason="No way to test this feature yet")
220220
def test_create_task_must_contain_description(client):
221221
# Act
222222
response = client.post("/tasks", json={

0 commit comments

Comments
 (0)