Almost there
This commit is contained in:
@@ -23,7 +23,7 @@ async def test_register_should_create_progress_of_zero():
|
||||
response = response.json()[0]
|
||||
|
||||
assert response["progress"] == 0.0
|
||||
assert response["course"] == course
|
||||
assert response["course_index"] == course
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
@@ -40,7 +40,7 @@ async def test_get_all_sould_return_all():
|
||||
|
||||
for course in CourseEnum:
|
||||
if course != CourseEnum.All:
|
||||
assert {"progress": 0.0, "course": course} in response
|
||||
assert {"progress": 0.0, "course_index": course, "completed_learnables": 0, "in_use_learnables": 0, "total_learnables": 0, "learnables": []} in response
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
@@ -117,7 +117,7 @@ async def test_patch_all_should_patch_all_courses():
|
||||
|
||||
for course in CourseEnum:
|
||||
if course != CourseEnum.All:
|
||||
assert {"progress": progress, "course": course} in response
|
||||
assert {"progress": 0.0, "course_index": course, "completed_learnables": 0, "in_use_learnables": 0, "total_learnables": 0, "learnables": []} in response
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
|
||||
Reference in New Issue
Block a user