@@ -374,8 +374,8 @@ def test_load_course( # noqa: PLR0913,PLR0912,PLR0915
374374 "start_date" : old_run .start_date ,
375375 "end_date" : old_run .end_date ,
376376 "prices" : [
377- {"amount" : Decimal (30.00 ), "currency" : CURRENCY_USD },
378- {"amount" : Decimal (120.00 ), "currency" : CURRENCY_USD },
377+ {"amount" : Decimal (" 30.00" ), "currency" : CURRENCY_USD },
378+ {"amount" : Decimal (" 120.00" ), "currency" : CURRENCY_USD },
379379 ],
380380 },
381381 {
@@ -384,8 +384,8 @@ def test_load_course( # noqa: PLR0913,PLR0912,PLR0915
384384 "start_date" : start_date ,
385385 "end_date" : run .end_date ,
386386 "prices" : [
387- {"amount" : Decimal (0.00 ), "currency" : CURRENCY_USD },
388- {"amount" : Decimal (49.00 ), "currency" : CURRENCY_USD },
387+ {"amount" : Decimal (" 0.00" ), "currency" : CURRENCY_USD },
388+ {"amount" : Decimal (" 49.00" ), "currency" : CURRENCY_USD },
389389 ],
390390 },
391391 ]
@@ -403,12 +403,12 @@ def test_load_course( # noqa: PLR0913,PLR0912,PLR0915
403403 )
404404 assert result .next_start_date == expected_next_start_date
405405 assert result .prices == (
406- [Decimal (0.00 ), Decimal (49.00 )]
406+ [Decimal (" 0.00" ), Decimal (" 49.00" )]
407407 if is_run_published and result .certification
408408 else []
409409 )
410410 assert [price .amount for price in result .resource_prices .all ()] == (
411- [Decimal (0.00 ), Decimal (49.00 )]
411+ [Decimal (" 0.00" ), Decimal (" 49.00" )]
412412 if is_run_published and result .certification
413413 else []
414414 )
@@ -563,9 +563,9 @@ def test_load_duplicate_course(
563563
564564 for key , value in props .items ():
565565 assert getattr (result , key ) == value , f"Property { key } should equal { value } "
566- assert (
567- getattr ( saved_course , key ) == value
568- ), f"Property { key } should be updated to { value } in the database"
566+ assert getattr ( saved_course , key ) == value , (
567+ f"Property { key } should be updated to { value } in the database"
568+ )
569569
570570
571571@pytest .mark .parametrize ("unique_url" , [True , False ])
@@ -695,7 +695,7 @@ def test_load_run(run_exists, status, certification):
695695 if run_exists
696696 else LearningResourceRunFactory .build ()
697697 )
698- prices = [Decimal (70.00 ), Decimal (20.00 )]
698+ prices = [Decimal (" 70.00" ), Decimal (" 20.00" )]
699699 props = model_to_dict (
700700 LearningResourceRunFactory .build (
701701 run_id = learning_resource_run .run_id ,
@@ -964,9 +964,9 @@ def test_load_content_file():
964964 assert loaded_file .run == learning_resource_run
965965
966966 for key , value in props .items ():
967- assert (
968- getattr ( loaded_file , key ) == value
969- ), f"Property { key } should equal { value } "
967+ assert getattr ( loaded_file , key ) == value , (
968+ f"Property { key } should equal { value } "
969+ )
970970
971971
972972def test_load_image ():
0 commit comments