diff --git a/unit_tests/test_deliberation_lib.py b/unit_tests/test_deliberation_lib.py index eeb36a985b0021139c11693ed1473c88b85cf0cb..bd3b55a3d305ebbbe34f62fc65d72b8397675e23 100644 --- a/unit_tests/test_deliberation_lib.py +++ b/unit_tests/test_deliberation_lib.py @@ -172,7 +172,7 @@ def test_fill_dict_part_1( os.remove("test_direction_file_unchanged.csv") os.remove("test_direction_file_2.csv") - os.remove(f"{"app/tmp_files/"}test_direction_file_2.csv") + os.remove("app/tmp_files/test_direction_file_2.csv") @patch('builtins.str') diff --git a/unit_tests/test_user_controller.py b/unit_tests/test_user_controller.py index 8d384bbb306d800dd0fcf57115561eb42023c039..705e02e3f595b0a9c83f3a3edd3f218789ecbbd5 100644 --- a/unit_tests/test_user_controller.py +++ b/unit_tests/test_user_controller.py @@ -187,8 +187,8 @@ async def test_convert_img_to_webp_valid( assert result == {"message": "Image uploaded"} mock_system.assert_called_with( - f"{"app/tmp_files/"}test.png") - remove(f"{"app/tmp_files/"}test.png") + "app/tmp_files/test.png") + remove("app/tmp_files/test.png") @pytest.mark.asyncio @@ -218,8 +218,8 @@ async def test_convert_img_already_webp_valid( "user_id" ) assert result == {"message": "Image uploaded"} - mock_system.assert_called_with(f"{"app/tmp_files/"}test.png") - remove(f"{"app/tmp_files/"}test.png") + mock_system.assert_called_with("app/tmp_files/test.png") + remove("app/tmp_files/test.png") @pytest.mark.asyncio @@ -249,8 +249,8 @@ async def test_convert_img_already_webp_valid_2( "user_id" ) assert result == {"message": "Image uploaded"} - mock_system.assert_called_with(f"{"app/tmp_files/"}test.webp") - remove(f"{"app/tmp_files/"}test.webp") + mock_system.assert_called_with("app/tmp_files/test.webp") + remove("app/tmp_files/test.webp") @pytest.mark.asyncio